Class Token
- java.lang.Object
-
- org.apache.manifoldcf.scriptengine.Token
-
public class Token extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected int
characterPosition
protected int
lineNumber
static int
TOKEN_FLOAT
static int
TOKEN_INTEGER
static int
TOKEN_PUNCTUATION
static int
TOKEN_STRING
static int
TOKEN_TOKEN
protected int
tokenType
protected java.lang.String
tokenValue
-
Constructor Summary
Constructors Constructor Description Token(int type, java.lang.String value, int lineNumber, int characterPosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFloat()
java.lang.String
getInteger()
java.lang.String
getPunctuation()
java.lang.String
getString()
java.lang.String
getToken()
void
throwException(java.lang.String message)
java.lang.String
toString()
-
-
-
Field Detail
-
TOKEN_PUNCTUATION
public static final int TOKEN_PUNCTUATION
- See Also:
- Constant Field Values
-
TOKEN_STRING
public static final int TOKEN_STRING
- See Also:
- Constant Field Values
-
TOKEN_INTEGER
public static final int TOKEN_INTEGER
- See Also:
- Constant Field Values
-
TOKEN_FLOAT
public static final int TOKEN_FLOAT
- See Also:
- Constant Field Values
-
TOKEN_TOKEN
public static final int TOKEN_TOKEN
- See Also:
- Constant Field Values
-
tokenType
protected int tokenType
-
tokenValue
protected java.lang.String tokenValue
-
lineNumber
protected int lineNumber
-
characterPosition
protected int characterPosition
-
-
Method Detail
-
throwException
public void throwException(java.lang.String message) throws ScriptException
- Throws:
ScriptException
-
getPunctuation
public java.lang.String getPunctuation()
-
getToken
public java.lang.String getToken()
-
getString
public java.lang.String getString()
-
getFloat
public java.lang.String getFloat()
-
getInteger
public java.lang.String getInteger()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-