|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectRConstructor
public final class RConstructor extends Object implements StatementKind, Serializable
Represents a constructor call. The inputs are parameters to the constructor and outputs include the new object. The "R" stands for "Randoop", to underline the distinction from java.lang.reflect.Constructor.
| Modifier and Type | Field and Description |
|---|---|
int |
calls_num
|
long |
calls_time
|
static String |
ID
ID for parsing purposes (see StatementKinds.parse method) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendCode(Variable varName,
List<Variable> inputVars,
StringBuilder b)
Produces a Java source code representation of this statement and append it to the given StringBuilder. |
boolean |
equals(Object o)
|
ExecutionOutcome |
execute(Object[] statementInput,
PrintStream out)
Executes this statement, given the inputs to the statement. |
Constructor<?> |
getConstructor()
Returns the reflection constructor corresponding to this RConstructor. |
List<Class<?>> |
getInputTypes()
Returns the input types of this constructor. |
Class<?> |
getOutputType()
Returns the return type of this constructor. |
static RConstructor |
getRConstructor(Constructor<?> constructor)
Creates the RConstructor corresponding to the given reflection constructor. |
int |
hashCode()
|
static StatementKind |
parse(String s)
|
String |
toParseableString()
A string representing this constructor. |
String |
toString()
Returns concise string representation of this ConstructorCallInfo |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ID
public long calls_time
public int calls_num
| Method Detail |
|---|
public Constructor<?> getConstructor()
public static RConstructor getRConstructor(Constructor<?> constructor)
public String toString()
toString in class Object
public void appendCode(Variable varName,
List<Variable> inputVars,
StringBuilder b)
StatementKind
appendCode in interface StatementKindpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public ExecutionOutcome execute(Object[] statementInput,
PrintStream out)
StatementKind
execute in interface StatementKindstatementInput - array containing appropriate inputs to statementout - stream to output results of execution;
can be null if you don't want to print.public List<Class<?>> getInputTypes()
getInputTypes in interface StatementKindpublic Class<?> getOutputType()
getOutputType in interface StatementKindpublic String toParseableString()
toParseableString in interface StatementKindpublic static StatementKind parse(String s)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||