|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ujac.util.template.TemplateToken org.ujac.util.template.TemplateTokenContainer
public abstract class TemplateTokenContainer
Name: TemplateTokenContainer
Description: A base class for statement token containers.
Field Summary | |
---|---|
protected Map |
procedureRegistry
The procedure registry. |
Fields inherited from class org.ujac.util.template.TemplateToken |
---|
interpreter, nextLegalAncestor, parent, position, source |
Constructor Summary | |
---|---|
TemplateTokenContainer()
Constructs a TemplateTokenContainer instance with no specific attributes. |
Method Summary | |
---|---|
void |
addToken(TemplateToken token)
Adds a token to the token list. |
void |
clearTokens()
Clears the token list. |
protected void |
cloneChildTokens(Map procedureRegistry,
TemplateTokenContainer parent)
Clones the childs of this token. |
void |
close(int bodyEnd,
int statementEnd)
Closes the statement token container. |
int |
getBodyEnd()
Getter method for the the property bodyEnd. |
int |
getBodyStart()
Getter method for the the property bodyStart. |
Map |
getProcedureRegistry()
Gets the procedure registry. |
TemplateToken |
getToken(int idx)
Gets a token from the token list. |
int |
getTokenCount()
Gets the current number of tokens. |
boolean |
isBodyToken()
Tells whether or not this token has a body. |
boolean |
isClosed()
Tells whether or not the container has been closed. |
void |
setBodyStart(int bodyStart)
Setter method for the the property bodyStart. |
void |
setProcedureRegistry(Map registry)
Sets the procedure registry. |
String |
toString()
|
Methods inherited from class org.ujac.util.template.TemplateToken |
---|
checkContainer, cloneToken, execute, getAncestorRules, getArgumentsAsString, getEndPosition, getIndention, getLength, getLevel, getParent, getPosition, getSource, getTokenName, initialize, isLegalAncestor, isLegalAncestor, parseArguments, parseArguments, setArgument, setLength, setLevel, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Map procedureRegistry
Constructor Detail |
---|
public TemplateTokenContainer()
Method Detail |
---|
public boolean isBodyToken()
isBodyToken
in class TemplateToken
public boolean isClosed()
public void close(int bodyEnd, int statementEnd)
bodyEnd
- The body end to set.statementEnd
- The statment end to set.public final int getTokenCount()
public final TemplateToken getToken(int idx)
idx
- The token index.
public final void addToken(TemplateToken token)
token
- The token to add.public final void clearTokens()
public int getBodyStart()
public void setBodyStart(int bodyStart)
bodyStart
- The value to set for the property bodyStart.public int getBodyEnd()
public String toString()
toString
in class Object
Object.toString()
public Map getProcedureRegistry()
public void setProcedureRegistry(Map registry)
registry
- The procedure registry to set.protected void cloneChildTokens(Map procedureRegistry, TemplateTokenContainer parent)
procedureRegistry
- The procedure registry to use.parent
- The parent token container.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |