public class SessionScope extends Object
| Constructor and Description |
|---|
SessionScope()
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNodeIndex(int index)
This method adds an index to the session scope.
|
void |
addSubScope(SessionScope sub)
This method adds a sub scope to the session's scope.
|
boolean |
completed()
This method determines whether the session scope has completed.
|
protected void |
completed(boolean completed)
This method sets the completion state of the session scope.
|
int |
getCatches()
This method returns the node index associated with catch
specifications.
|
int |
getCompletionIndex()
This method returns the optional completion index.
|
boolean |
getMutuallyExclusive()
This method returns whether the session scope contains sub-scopes
that are mutually exclusive.
|
String |
getName()
This method returns the optional name associated with the scope.
|
List<Integer> |
getNodeIndexes()
This method returns the list of current nodes associated with the
session instance.
|
List<SessionScope> |
getSubScopes()
This method returns the list of sub-scopes associated with the
session instance.
|
int |
getThrows()
This method returns the node index associated with throw
specifications.
|
void |
setCatches(int index)
This method sets the node index associated with catch
specifications.
|
void |
setCompletionIndex(int index)
This method returns the optional completion index.
|
void |
setMutuallyExclusive(boolean me)
This method sets whether the session scope contains sub-scopes
that are mutually exclusive.
|
void |
setName(String name)
This method sets the optional name associated with the scope.
|
void |
setNodeIndexes(List<Integer> indexes)
This method sets the list of node indexes associated with this scope.
|
void |
setSubScopes(List<SessionScope> subScopes)
This method sets the list of sub-scopes associated with this scope.
|
void |
setThrows(int index)
This method sets the list of node indexes associated with throw
specifications.
|
public String getName()
public void setName(String name)
name - The namepublic List<Integer> getNodeIndexes()
public void addNodeIndex(int index)
index - The indexpublic void setNodeIndexes(List<Integer> indexes)
indexes - The current nodespublic List<SessionScope> getSubScopes()
public void addSubScope(SessionScope sub)
sub - The sub scopepublic void setSubScopes(List<SessionScope> subScopes)
subScopes - The sub scopespublic int getCompletionIndex()
public void setCompletionIndex(int index)
index - The completion index, or -1 if not definedprotected void completed(boolean completed)
completed - The completion statepublic boolean completed()
public boolean getMutuallyExclusive()
public void setMutuallyExclusive(boolean me)
me - Whether mutually exclusivepublic int getCatches()
public void setCatches(int index)
index - The catch node indexpublic int getThrows()
public void setThrows(int index)
index - The throw node indexCopyright © 2014. All Rights Reserved.