com.metaweb.lessen.tokens
Class Token

java.lang.Object
  extended by com.metaweb.lessen.tokens.Token
Direct Known Subclasses:
Color, NumericToken, StringValueToken

public class Token
extends Object


Nested Class Summary
static class Token.Type
           
 
Field Summary
 int end
           
 int start
           
 String text
           
 Token.Type type
           
 
Constructor Summary
Token(Token.Type type, int start, int end, String text)
           
 
Method Summary
 String getCleanText()
           
 String toString()
           
static String typeToString(Token.Type type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

public final Token.Type type

start

public final int start

end

public final int end

text

public final String text
Constructor Detail

Token

public Token(Token.Type type,
             int start,
             int end,
             String text)
Method Detail

typeToString

public static String typeToString(Token.Type type)

toString

public String toString()
Overrides:
toString in class Object

getCleanText

public String getCleanText()


Copyright © 2011. All Rights Reserved.