com.octagroup.foregej.java.lang
Class JavaToken
java.lang.Object
|
+--antlr.Token
|
+--antlr.CommonToken
|
+--antlr.CommonHiddenStreamToken
|
+--com.octagroup.foregej.antlr.BaseToken
|
+--com.octagroup.foregej.java.lang.JavaToken
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- Comment, TOK_WS
- public class JavaToken
- extends BaseToken
A java token.
Fields inherited from class antlr.CommonHiddenStreamToken |
hiddenAfter, hiddenBefore |
Fields inherited from class antlr.CommonToken |
col, line, text |
Fields inherited from class antlr.Token |
badToken, EOF_TYPE, INVALID_TYPE, MIN_USER_TYPE, NULL_TREE_LOOKAHEAD, SKIP |
Methods inherited from class antlr.CommonHiddenStreamToken |
getHiddenAfter, getHiddenBefore |
Methods inherited from class antlr.CommonToken |
getColumn, getLine, getText, setColumn, setLine, setText, toString |
Methods inherited from class antlr.Token |
getFilename, getType, setFilename, setType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
endLine
protected int endLine
endColumn
protected int endColumn
javaLexer
protected JavaLexerBase javaLexer
JavaToken
public JavaToken()
getEndColumn
public int getEndColumn()
- Returns the end column
- Returns:
- the end column
getEndLine
public int getEndLine()
- Returns the end line
- Returns:
- the end line
setEndColumn
public void setEndColumn(int endColumn)
- Sets the end column
- Parameters:
endColumn
-
setEndLine
public void setEndLine(int endLine)
- Sets the end line
- Parameters:
endLine
- the end line
getJavaLexer
public JavaLexerBase getJavaLexer()
- Returns the lexer that created this token
- Returns:
- the lexer that created this token
setJavaLexer
public void setJavaLexer(JavaLexerBase lexer)
- Sets the lexer that created this token.
- Parameters:
lexer
- the lexer that created this token.
hasNewLineAfter
public boolean hasNewLineAfter()
- Returns true if this token is followed by a white space with a new
line separator.
- Returns:
-
Copyright © 2003 El Icognito des Noboby. All Rights Reserved.