com.jeffpalm.javaparser
Class NamedToken

java.lang.Object
  extended by com.jeffpalm.javaparser.NamedToken

public class NamedToken
extends java.lang.Object

Description of the Class

Author:
Mike Atkinson, Mike Atkinson

Constructor Summary
NamedToken(java.lang.String initID, Token initToken)
          Creates a named token
 
Method Summary
 boolean check(java.lang.String match)
          Check if the id matches
 java.lang.String getID()
          Return the id
 Token getToken()
          Return the token
 java.lang.String toString()
          Create a human readable representation of the token
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamedToken

public NamedToken(java.lang.String initID,
                  Token initToken)
Creates a named token

Parameters:
initID - the id
initToken - the token
Method Detail

getID

public java.lang.String getID()
Return the id

Returns:
the id

getToken

public Token getToken()
Return the token

Returns:
the token

check

public boolean check(java.lang.String match)
Check if the id matches

Parameters:
match - does it match
Returns:
true if it matches

toString

public java.lang.String toString()
Create a human readable representation of the token

Overrides:
toString in class java.lang.Object
Returns:
A representation of the token
Since:
JRefactory 2.7.00