Class CharToken
- java.lang.Object
-
- com.googlecode.aviator.lexer.token.AbstractToken<java.lang.Character>
-
- com.googlecode.aviator.lexer.token.CharToken
-
- All Implemented Interfaces:
Token<java.lang.Character>
,java.io.Serializable
public class CharToken extends AbstractToken<java.lang.Character>
Charactor token- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.googlecode.aviator.lexer.token.Token
Token.TokenType
-
-
Field Summary
Fields Modifier and Type Field Description private char
ch
private static long
serialVersionUID
private int
startIndex
-
Fields inherited from class com.googlecode.aviator.lexer.token.AbstractToken
lexeme
-
-
Constructor Summary
Constructors Constructor Description CharToken(char peek, int lineNo, int startIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
char
getCh()
Token.TokenType
getType()
java.lang.Character
getValue(java.util.Map<java.lang.String,java.lang.Object> env)
int
hashCode()
-
Methods inherited from class com.googlecode.aviator.lexer.token.AbstractToken
getEndIndex, getLexeme, getLineNo, getMeta, getMeta, getMetaMap, getStartIndex, setMetaMap, toString, withMeta
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
ch
private final char ch
-
startIndex
private int startIndex
-
-
Method Detail
-
getCh
public char getCh()
-
getType
public Token.TokenType getType()
-
getValue
public java.lang.Character getValue(java.util.Map<java.lang.String,java.lang.Object> env)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractToken<java.lang.Character>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classAbstractToken<java.lang.Character>
-
-