Package org.drools.compiler.lang
Class DroolsToken
- java.lang.Object
-
- org.antlr.runtime.CommonToken
-
- org.drools.compiler.lang.DroolsToken
-
- All Implemented Interfaces:
Serializable
,org.antlr.runtime.Token
public class DroolsToken extends org.antlr.runtime.CommonToken
An extension of the CommonToken class that keeps the char offset information- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DroolsToken(int type)
DroolsToken(int type, String text)
DroolsToken(org.antlr.runtime.CharStream input, int type, int channel, int start, int stop)
DroolsToken(org.antlr.runtime.Token oldToken)
Constructor that preserves the char offset
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DroolsEditorType
getEditorType()
getter of editor typevoid
setEditorType(DroolsEditorType editorType)
setter of editor type-
Methods inherited from class org.antlr.runtime.CommonToken
getChannel, getCharPositionInLine, getInputStream, getLine, getStartIndex, getStopIndex, getText, getTokenIndex, getType, setChannel, setCharPositionInLine, setInputStream, setLine, setStartIndex, setStopIndex, setText, setTokenIndex, setType, toString
-
-
-
-
Constructor Detail
-
DroolsToken
public DroolsToken(int type)
-
DroolsToken
public DroolsToken(org.antlr.runtime.CharStream input, int type, int channel, int start, int stop)
-
DroolsToken
public DroolsToken(int type, String text)
-
DroolsToken
public DroolsToken(org.antlr.runtime.Token oldToken)
Constructor that preserves the char offset- Parameters:
oldToken
-
-
-
Method Detail
-
getEditorType
public DroolsEditorType getEditorType()
getter of editor type- Returns:
- editor type
- See Also:
DroolsEditorType
-
setEditorType
public void setEditorType(DroolsEditorType editorType)
setter of editor type- Parameters:
editorElementType
- editor type- See Also:
DroolsEditorType
-
-