nl.pbemengine.engine.ng.tools
Class NumericToken

java.lang.Object
  extended by nl.pbemengine.engine.ng.tools.NumericToken
All Implemented Interfaces:
Token

public class NumericToken
extends java.lang.Object
implements Token

A Token that consists of a sequence of numeric chars

Author:
Jeroen Steenbeeke

Constructor Summary
NumericToken()
          Creates a new instance of Numeric
 
Method Summary
 java.lang.Object match(LineParser p)
          Sees if the given LineParser's content contains this token
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumericToken

public NumericToken()
Creates a new instance of Numeric

Method Detail

match

public java.lang.Object match(LineParser p)
Sees if the given LineParser's content contains this token

Specified by:
match in interface Token
Parameters:
p - The LineParser
Returns:
A TokenValue object if it matches, or null otherwise

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of the object


Copyright © 2008. All Rights Reserved.