com.webcodepro.applecommander.util
Class BusinessBASICToken

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

public class BusinessBASICToken
extends java.lang.Object

Represents an Apple /// Business BASIC Token.

Author:
David Schmidt
See Also:
ApplesoftTokenizer

Constructor Summary
BusinessBASICToken(byte tokenValue, java.lang.String tokenString)
           
BusinessBASICToken(int lineNumber)
           
BusinessBASICToken(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 isIndenter()
           
 boolean isLineNumber()
           
 boolean isOutdenter()
           
 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

BusinessBASICToken

public BusinessBASICToken(int lineNumber)

BusinessBASICToken

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

BusinessBASICToken

public BusinessBASICToken(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()

isIndenter

public boolean isIndenter()

isOutdenter

public boolean isOutdenter()

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