org.crsh.cli.impl.tokenizer
Class Token
java.lang.Object
org.crsh.cli.impl.tokenizer.Token
- Direct Known Subclasses:
- Token.Literal, Token.Whitespace
public abstract class Token
- extends Object
Field Summary |
(package private) int |
index
The index in the containing sequence. |
(package private) String |
raw
. |
Method Summary |
boolean |
equals(Object obj)
|
int |
getFrom()
Returns the from index is the containing string. |
String |
getRaw()
Returns the raw text. |
int |
getTo()
Returns the to index in the containing string. |
index
final int index
- The index in the containing sequence.
raw
final String raw
- .
Token
Token(int index,
String raw)
getRaw
public String getRaw()
- Returns the raw text.
- Returns:
- the raw text
getFrom
public int getFrom()
- Returns the from index is the containing string.
- Returns:
- the from index
getTo
public int getTo()
- Returns the to index in the containing string.
- Returns:
- the to index
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2015 eXo Platform SAS. All Rights Reserved.