|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ksu.cis.projects.bogor.ast.Node edu.ksu.cis.projects.bogor.ast.Catch
public final class Catch
Catch AST.
Field Summary |
---|
Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
---|
ILLEGAL_LOCAL_ID_CHAR |
Constructor Summary | |
---|---|
Catch(boolean isLocComplement,
String throwableId,
String id,
List<String> locIds,
NextState nextState)
Default constructor. |
Method Summary | |
---|---|
Catch |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Removes reference to parent, throwableId, id and locIds, and disposes nextState. |
String |
getId()
Gets the id. |
String |
getLocationId(int index)
Gets the location id at a specified index. |
int |
getLocationIdCount()
Gets the number of location ids. |
NextState |
getNextState()
Gets the nextstate |
FSM |
getParent()
Gets the parent of this object. |
String |
getThrowableId()
Gets the throwable id. |
boolean |
isLocComplement()
Gets catch mode. |
void |
setId(String newId)
Sets the id. |
void |
setLocationIds(List<String> newLocIds)
Sets the location ids. |
void |
setLocComplement(boolean newIsLocComplement)
Sets catch mode. |
void |
setNextState(NextState newNextState)
Sets the nextstate. |
void |
setParent(FSM newParent)
Sets the parent of this object. |
void |
setThrowableId(String newThrowableId)
Sets the throwable id. |
String |
toString()
Returns the string representation of this object. |
void |
visit(ASTVisitor visitor)
|
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 Catch(boolean isLocComplement, String throwableId, String id, List<String> locIds, NextState nextState)
throwableId
- The throwable id. Must be non-null.id
- The id. Must be non-null.locIds
- The locationd ids. Must be non-null. Each element must be
instance of String. The number of elements must be greater
than zero.nextState
- The nextstate. Must be non-null.Method Detail |
---|
public void setLocComplement(boolean newIsLocComplement)
newIsLocComplement
- The new catch mode. False if the locations not listed are the
catch locations.public boolean isLocComplement()
public void setId(String newId)
newId
- The new id. Must be non-null.public String getId()
public String getLocationId(int index)
index
- The index of the location id. Must be between 0 and
getLocationCount() - 1, inclusive.
public int getLocationIdCount()
public void setLocationIds(List<String> newLocIds)
newLocIds
- The new location ids. Must be non-null. Each element must be
instance of String. The number of elements must be greater
than zero.public void setNextState(NextState newNextState)
newNextState
- The new nextstate. Must be non-null.public NextState getNextState()
public void setParent(FSM newParent)
newParent
- The new parent. Must be non-null.public FSM getParent()
public void setThrowableId(String newThrowableId)
newThrowableId
- The new throwable id. Must be non-null.public String getThrowableId()
public Catch clone()
clone
in class Node
public void dispose()
dispose
in interface Disposable
dispose
in class Node
public String toString()
toString
in class Node
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 |