Package org.apache.felix.gogo.runtime
Class Token
java.lang.Object
org.apache.felix.gogo.runtime.Token
- All Implemented Interfaces:
CharSequence
- Direct Known Subclasses:
Parser.Array
,Parser.Closure
,Parser.Executable
,Parser.Program
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionToken
(char[] _ch, int _start, int _length, int _line, int _col) Token
(CharSequence cs) -
Method Summary
Modifier and TypeMethodDescriptionchar
charAt
(int index) int
column()
static boolean
eq
(CharSequence cs1, CharSequence cs2) int
length()
int
line()
int
start()
subSequence
(int start, int end) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Field Details
-
ch
protected final char[] ch -
start
protected final int start -
length
protected final int length -
line
protected final int line -
column
protected final int column
-
-
Constructor Details
-
Token
-
Token
public Token(char[] _ch, int _start, int _length, int _line, int _col)
-
-
Method Details
-
line
public int line() -
column
public int column() -
start
public int start() -
length
public int length()- Specified by:
length
in interfaceCharSequence
-
charAt
public char charAt(int index) - Specified by:
charAt
in interfaceCharSequence
-
subSequence
- Specified by:
subSequence
in interfaceCharSequence
-
toString
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-
eq
-