|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectDummyStatement
public class DummyStatement extends Object implements StatementKind, Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
ID
ID for parsing purposes (see StatementKinds.parse method) |
| Constructor and Description |
|---|
DummyStatement()
|
DummyStatement(String name)
|
| 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 (ordered) list of input types for this statement kind. |
Class<?> |
getOutputType()
Returns the type of this statement kind's output. |
int |
hashCode()
|
static StatementKind |
parse(String description)
A string representing this dummy statement. |
String |
toParseableString()
Returns a string representation of this StatementKind, which can subsequently be used in this class's parse method. |
String |
toString()
|
String |
toStringShort()
|
String |
toStringVerbose()
|
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ID
| Constructor Detail |
|---|
public DummyStatement()
public DummyStatement(String name)
| Method Detail |
|---|
public List<Class<?>> getInputTypes()
StatementKind
getInputTypes in interface StatementKind
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 String toString()
toString in class Objectpublic String toStringShort()
public String toStringVerbose()
public Class<?> getOutputType()
StatementKind
getOutputType in interface StatementKind
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 Objectpublic String toParseableString()
StatementKind
toParseableString in interface StatementKindpublic static StatementKind parse(String description)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||