com.webcodepro.applecommander.util
Class ApplesoftToken

java.lang.Object
  extended by com.webcodepro.applecommander.util.ApplesoftToken

public class ApplesoftToken
extends java.lang.Object

Represents an ApplesoftToken.

Author:
Rob
See Also:
ApplesoftTokenizer

Constructor Summary
ApplesoftToken(byte tokenValue, java.lang.String tokenString)
           
ApplesoftToken(int lineNumber)
           
ApplesoftToken(java.lang.String stringValue)
           
 
Method Summary
 int getLineNumber()
          Get the line number.
 java.lang.String getStringValue()
          Get the string value.
 java.lang.String getTokenString()
          Get the token.
 byte getTokenValue()
          Get the token.
 boolean isCommandSeparator()
           
 boolean isEndOfCommand()
           
 boolean isExpressionSeparator()
           
 boolean isLineNumber()
           
 boolean isString()
           
 boolean isToken()
           
 java.lang.String toString()
          Render the token as a useful String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplesoftToken

public ApplesoftToken(int lineNumber)

ApplesoftToken

public ApplesoftToken(byte tokenValue,
                      java.lang.String tokenString)

ApplesoftToken

public ApplesoftToken(java.lang.String stringValue)
Method Detail

isCommandSeparator

public boolean isCommandSeparator()

isLineNumber

public boolean isLineNumber()

isEndOfCommand

public boolean isEndOfCommand()

isToken

public boolean isToken()

isString

public boolean isString()

isExpressionSeparator

public boolean isExpressionSeparator()

getLineNumber

public int getLineNumber()
Get the line number.


getStringValue

public java.lang.String getStringValue()
Get the string value.


getTokenString

public java.lang.String getTokenString()
Get the token.


getTokenValue

public byte getTokenValue()
Get the token.


toString

public java.lang.String toString()
Render the token as a useful String.

Overrides:
toString in class java.lang.Object