public final class ProgressPatternWorker extends AbstractConversionWorker
ProgressParser
)
to their integral types.
This worker also provides helpers to create ProgressAst
nodes.
Modifier and Type | Class and Description |
---|---|
class |
ProgressPatternWorker.ProgressAstHelper
Helper to create Progress ASTs.
|
Modifier and Type | Field and Description |
---|---|
private ProgressPatternWorker.ProgressAstHelper |
helper
Cache current instance of the helper so that common methods have
access.
|
PEER_ID
resolver
Constructor and Description |
---|
ProgressPatternWorker()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
resolveConstant(java.lang.String constant)
This method is called each time the pattern engine needs to resolve
a string constant into a numeric, boolean, or string literal value.
|
crossReferencePeerAsts, getClosestPeerId, getParentPeer, initializeAst, initializeAst, initializeRootAst, initializeRootAst
finish, getCopy, getLibrary, getSource, initialize, registerTree, setLibrary, visitAst
private ProgressPatternWorker.ProgressAstHelper helper
public java.lang.Object resolveConstant(java.lang.String constant)
resolveConstant
in interface PatternWorker
resolveConstant
in class AbstractPatternWorker
constant
- A case-insensitive token name to be resolved to a token type.Integer
value associated with the token type
represented by the token name constant
, or
null
if the given constant is not the name of a
valid, Progress language token.