|
|||||||||||
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.CrToken
This class represents a cr token.
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 |
CrToken(UnicodeChar value)
Creates a new object. |
Method Summary | |
boolean |
equals(Catcode cc,
char c)
Compare the current token with a pair of catcode and character value. |
boolean |
equals(Catcode cc,
java.lang.String s)
Compare the current token with a pair of catcode and String value. |
boolean |
equals(char c)
Compare the current token with a character value. |
Catcode |
getCatcode()
Getter for the catcode. |
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.String |
toText()
This method returns the textual representation for the Token. |
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, getChar, getLocalizer, hashCode, isa, 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, getChar, isa, toText |
Field Detail |
protected static final long serialVersionUID
Constructor Detail |
protected CrToken(UnicodeChar value)
value
- the string valueMethod Detail |
public boolean equals(Catcode cc, char c)
Token
equals
in interface Token
equals
in class AbstractToken
AbstractToken.equals(de.dante.extex.scanner.type.Catcode, char)
public boolean equals(Catcode cc, java.lang.String s)
Token
equals
in interface Token
equals
in class AbstractToken
AbstractToken.equals(de.dante.extex.scanner.type.Catcode, java.lang.String)
public boolean equals(char c)
Token
equals
in interface Token
equals
in class AbstractToken
AbstractToken.equals(char)
public Catcode getCatcode()
Token
getCatcode
in interface Token
getCatcode
in class AbstractToken
Token.getCatcode()
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.String toText()
Token
toString()
.
toText
in interface Token
toText
in class AbstractToken
Token.toText()
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 |