Class SymbolRootNode
java.lang.Object
org.pipservices3.expressions.tokenizers.generic.SymbolNode
org.pipservices3.expressions.tokenizers.generic.SymbolRootNode
This class is a special case of a
SymbolNode
. A SymbolRootNode
object has no symbol of its own, but has children that represent all possible symbols.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.pipservices3.expressions.tokenizers.generic.SymbolNode
addDescendantLine, ancestry, deepestRead, ensureChildWithChar, findChildWithChar, getTokenType, getValid, setTokenType, setValid, unreadToValid
-
Constructor Details
-
SymbolRootNode
public SymbolRootNode()Creates and initializes a root node.
-
-
Method Details
-
add
Add the given string as a symbol.- Parameters:
value
- The character sequence to add.tokenType
-- Throws:
Exception
-
nextToken
Return a symbol string from a scanner.- Parameters:
scanner
- A scanner to read from- Returns:
- A symbol string from a scanner
-