|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectRMethod
public final class RMethod extends Object implements StatementKind, Serializable
Represents a method call. The "R" stands for "Randoop", to underline the distinction from java.lang.reflect.Method.
| 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 newVar,
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. |
List<Class<?>> |
getInputTypes()
Returns the input types of this method. |
Method |
getMethod()
Returns Method object represented by this MethodCallInfo |
Class<?> |
getOutputType()
Returns the return type of this method. |
static RMethod |
getRMethod(Method method)
Returns the statement corresponding to the given constructor. |
int |
hashCode()
|
boolean |
isStatic()
Returns true if method represented by this MethodCallInfo is a static method. |
static StatementKind |
parse(String s)
|
String |
toParseableString()
A string representing this method. |
String |
toString()
|
| 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 Method getMethod()
public static RMethod getRMethod(Method method)
public String toString()
toString in class Object
public void appendCode(Variable newVar,
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 boolean isStatic()
public 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 | ||||||||