org.apache.tapestry.parse
Class TemplateToken
java.lang.Object
org.apache.tapestry.parse.TemplateToken
- All Implemented Interfaces:
- org.apache.hivemind.Locatable
- Direct Known Subclasses:
- CloseToken, LocalizationToken, OpenToken, TextToken
public abstract class TemplateToken
- extends java.lang.Object
- implements org.apache.hivemind.Locatable
Base class for a number of different types of tokens that can be extracted from a page/component
template. This class defines the type of the token, subclasses provide interpretations on the
token.
- Author:
- Howard Lewis Ship
Method Summary |
protected void |
extendDescription(org.apache.hivemind.util.ToStringBuilder builder)
Overridden in subclasses to append additional fields (defined in the subclass) to the
description. |
org.apache.hivemind.Location |
getLocation()
|
TokenType |
getType()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TemplateToken
protected TemplateToken(TokenType type,
org.apache.hivemind.Location location)
getType
public TokenType getType()
getLocation
public org.apache.hivemind.Location getLocation()
- Specified by:
getLocation
in interface org.apache.hivemind.Locatable
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
extendDescription
protected void extendDescription(org.apache.hivemind.util.ToStringBuilder builder)
- Overridden in subclasses to append additional fields (defined in the subclass) to the
description. Subclasses may override this method without invoking this implementation, which
is empty.
- Since:
- 3.0