org.crsh.cmdline.matcher.tokenizer
Class Token

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

public abstract class Token
extends Object

Version:
$Revision$
Author:
Julien Viet

Nested Class Summary
static class Token.Literal
           
static class Token.Whitespace
           
 
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
 

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