com.metaweb.lessen.tokens
Class NumericWithUnitToken

java.lang.Object
  extended by com.metaweb.lessen.tokens.Token
      extended by com.metaweb.lessen.tokens.NumericToken
          extended by com.metaweb.lessen.tokens.NumericWithUnitToken

public class NumericWithUnitToken
extends NumericToken


Nested Class Summary
 
Nested classes/interfaces inherited from class com.metaweb.lessen.tokens.Token
Token.Type
 
Field Summary
 String unit
           
 
Fields inherited from class com.metaweb.lessen.tokens.NumericToken
n
 
Fields inherited from class com.metaweb.lessen.tokens.Token
end, start, text, type
 
Constructor Summary
NumericWithUnitToken(Token.Type type, int start, int end, String text, Number n, String unit)
           
 
Method Summary
 String getCleanText()
           
 
Methods inherited from class com.metaweb.lessen.tokens.Token
toString, typeToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

unit

public final String unit
Constructor Detail

NumericWithUnitToken

public NumericWithUnitToken(Token.Type type,
                            int start,
                            int end,
                            String text,
                            Number n,
                            String unit)
Method Detail

getCleanText

public String getCleanText()
Overrides:
getCleanText in class Token


Copyright © 2011. All Rights Reserved.