|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ksu.cis.projects.bogor.ast.Node
edu.ksu.cis.projects.bogor.ast.Transformation
edu.ksu.cis.projects.bogor.ast.BlockTransformation
public final class BlockTransformation
Block transformation AST.
| Field Summary |
|---|
| Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
|---|
ILLEGAL_LOCAL_ID_CHAR |
| Constructor Summary | |
|---|---|
BlockTransformation(boolean invisible,
boolean visible,
List<? extends Action> actions,
NextState nextState)
Default constructor. |
|
BlockTransformation(Exp exp,
boolean invisible,
boolean visible,
List<? extends Action> actions,
NextState nextState)
Constructor with expression. |
|
| Method Summary | |
|---|---|
BlockTransformation |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Removes references to parent, and disposes exp, actions, and nextState. |
Action |
getAction(int index)
Gets an action at a specified index. |
int |
getActionCount()
Gets the number of actions. |
void |
setActions(List<? extends Action> newActions)
Sets the actions. |
String |
toString()
Returns the string representation of this object. |
void |
visit(ASTVisitor visitor)
|
| Methods inherited from class edu.ksu.cis.projects.bogor.ast.Transformation |
|---|
getInvisible, getNextState, getOptionalExp, getParent, getVisible, setExp, setInvisible, setNextState, setParent, setVisible |
| Methods inherited from class edu.ksu.cis.projects.bogor.ast.Node |
|---|
getLocationInfo, getProperty, putProperty, setLocationInfo |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BlockTransformation(boolean invisible,
boolean visible,
List<? extends Action> actions,
NextState nextState)
invisible - The invisible.visible - The visible.actions - The actions. Must be non-null. Each element must be instance
of Action.nextState - The nextstate. Must be non-null.
public BlockTransformation(Exp exp,
boolean invisible,
boolean visible,
List<? extends Action> actions,
NextState nextState)
exp - The exp. Must be non-null.invisible - The invisible.visible - The visible.actions - The actions. Must be non-null. Each element must be instance
of Action.nextState - The nextstate. Must be non-null.| Method Detail |
|---|
public Action getAction(int index)
index - The index of the action. Must be between 0 and
getActionCount() - 1, inclusive.
public int getActionCount()
public void setActions(List<? extends Action> newActions)
newActions - The new actions. Must be non-null. Each element must be
instance of Action.public BlockTransformation clone()
clone in class Transformationpublic void dispose()
dispose in interface Disposabledispose in class Transformationpublic String toString()
toString in class Node
" [ when exp ] do [ invisible ]\n"
+ " {\n"
+ " ( actions )*"
+ " }\n"
+ " nextState;".
public void visit(ASTVisitor visitor)
visit in class Node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||