Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.singularsys.jep.configurableparser.tokens
Class SymbolToken

    java.lang.Object
      com.singularsys.jep.configurableparser.tokens.Token
          com.singularsys.jep.configurableparser.tokens.SymbolToken

    public class SymbolToken

extends Token

A simple type of token which represents a fixed string of characters. These tokens are returned by the `SymbolTokenMatcher`.

Constructor Summary
`SymbolToken(java.lang.String source)`
`SymbolToken(java.lang.String source, boolean implicitMul)` Construct a symbol token with a specified value for the implicit multiplication flag.

Method Summary
`boolean` | `isImplicitMulRhs()` Whether the token can appear on the right hand side of implicit multiplication '2 x'.
`boolean` | `isSymbol()`

Methods inherited from class com.singularsys.jep.configurableparser.tokens.Token
`equals, getLength, getSource, hashCode, isBinary, isComment, isFunction, isIdentifier, isNumber, isOperator, isPrefix, isString, isSuffix, isTernary, isWhiteSpace, toString`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Constructor Detail

### SymbolToken

    public SymbolToken(java.lang.String source)

### SymbolToken

    public SymbolToken(java.lang.String source,
                       boolean implicitMul)

  Construct a symbol token with a specified value for the implicit multiplication flag.

  Parameters:
    `source` -
    `implicitMul` - where the token can appear on the right hand side of implicit multiplication.

Method Detail

### isSymbol

    public boolean isSymbol()

  Overrides:
    `isSymbol` in class `Token`

### isImplicitMulRhs

    public boolean isImplicitMulRhs()

  Description copied from class: `Token`
  Whether the token can appear on the right hand side of implicit multiplication '2 x'.

  Overrides:
    `isImplicitMulRhs` in class `Token`
  Returns:
    boolean value corresponding to the result.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2007 Singular Systems http://www.singularsys.com/jep