org.crsh.cli.impl.tokenizer
Class Token

java.lang.Object
  extended by org.crsh.cli.impl.tokenizer.Token
Direct Known Subclasses:
Token.Literal, Token.Whitespace

public abstract class Token
extends Object


Nested Class Summary
static class Token.Literal
           
static class Token.Whitespace
           
 
Field Summary
(package private)  int index
          The index in the containing sequence.
(package private)  String raw
          .
 
Constructor Summary
Token(int index, 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

final int index
The index in the containing sequence.


raw

final String raw
.

Constructor Detail

Token

Token(int index,
      String raw)
Method Detail

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 © 2014 eXo Platform SAS. All Rights Reserved.