|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.scanner.type.token.AbstractToken
de.dante.extex.scanner.type.token.ActiveCharacterToken
This class represents an active character token. The active character token is characterized by its name. This name is a single letter string.
This class has a protected constructor only. Use the factory
TokenFactory
to get an instance of this class.
Field Summary | |
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
Constructor Summary | |
protected |
ActiveCharacterToken(UnicodeChar uc,
java.lang.String theNamespace)
Creates a new object. |
Method Summary | |
CodeToken |
cloneInDefaultNamespace()
Create a new instance of the token where the namespace is the default namespace and the other attributes are the same as for the current token. |
CodeToken |
cloneInNamespace(java.lang.String theNamespace)
Create a new instance of the token where the namespace is the given one. |
boolean |
equals(java.lang.Object other)
Compare the current token to another token. |
Catcode |
getCatcode()
Getter for the catcode. |
java.lang.String |
getName()
Getter for the name. |
java.lang.String |
getNamespace()
Getter for the namespace. |
int |
hashCode()
|
java.lang.String |
toString()
Get the string representation of this object for debugging purposes. |
void |
toString(java.lang.StringBuffer sb)
Print the token into a StringBuffer. |
java.lang.Object |
visit(TokenVisitor visitor,
java.lang.Object arg1)
Invoke the appropriate visit method for the current class. |
Methods inherited from class de.dante.extex.scanner.type.token.AbstractToken |
equals, equals, equals, getChar, getLocalizer, isa, toText, toText |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.dante.extex.scanner.type.token.Token |
equals, equals, equals, getChar, isa, toText, toText |
Field Detail |
protected static final long serialVersionUID
Constructor Detail |
protected ActiveCharacterToken(UnicodeChar uc, java.lang.String theNamespace)
uc
- the string valuetheNamespace
- the namespaceMethod Detail |
public CodeToken cloneInDefaultNamespace()
CodeToken
cloneInDefaultNamespace
in interface CodeToken
CodeToken.cloneInDefaultNamespace()
public CodeToken cloneInNamespace(java.lang.String theNamespace)
cloneInNamespace
in interface CodeToken
theNamespace
- the namespace to use
CodeToken.cloneInNamespace(
java.lang.String)
public boolean equals(java.lang.Object other)
Token
equals
in interface Token
equals
in class AbstractToken
Object.equals(java.lang.Object)
public Catcode getCatcode()
Token
getCatcode
in interface Token
getCatcode
in class AbstractToken
Token.getCatcode()
public java.lang.String getName()
CodeToken
getName
in interface CodeToken
CodeToken.getName()
public java.lang.String getNamespace()
CodeToken
getNamespace
in interface CodeToken
CodeToken.getNamespace()
public int hashCode()
hashCode
in class AbstractToken
Object.hashCode()
public java.lang.String toString()
toString
in class AbstractToken
public void toString(java.lang.StringBuffer sb)
toString
in interface Token
sb
- the target string bufferToken.toString(java.lang.StringBuffer)
public java.lang.Object visit(TokenVisitor visitor, java.lang.Object arg1) throws java.lang.Exception
Token
visit
in interface Token
visitor
- the calling visitorarg1
- the first argument to pass
java.lang.Exception
- in case of an errorToken.visit(
de.dante.extex.scanner.type.token.TokenVisitor,
java.lang.Object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |