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.


Field Summary
protected  int endColumn
           
protected  int endLine
           
protected  JavaLexerBase javaLexer
           
 
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
 
Constructor Summary
JavaToken()
           
 
Method Summary
 int getEndColumn()
          Returns the end column
 int getEndLine()
          Returns the end line
 JavaLexerBase getJavaLexer()
          Returns the lexer that created this token
 boolean hasNewLineAfter()
          Returns true if this token is followed by a white space with a new line separator.
 void setEndColumn(int endColumn)
          Sets the end column
 void setEndLine(int endLine)
          Sets the end line
 void setJavaLexer(JavaLexerBase lexer)
          Sets the lexer that created this token.
 
Methods inherited from class com.octagroup.foregej.antlr.BaseToken
getCreatedAst, isAfter, isAstCreated, isBefore, setCreatedAst, setHiddenAfter, setHiddenBefore
 
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
 

Field Detail

endLine

protected int endLine

endColumn

protected int endColumn

javaLexer

protected JavaLexerBase javaLexer
Constructor Detail

JavaToken

public JavaToken()
Method Detail

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.