public final class BasicTagAnalyzer extends AbstractAnalyzer<Expression> implements TagAnalyzer
A tag is defined as the following:
tag ::= UNOP tag TRUE | FALSE NUMBER STRING '(' expression ')' VARIABLE { '[' expression_list ']' } FUNC '(' expression_list ')'
Constructor and Description |
---|
BasicTagAnalyzer() |
Modifier and Type | Method and Description |
---|---|
Expression |
analyze() |
Factory |
getFactory() |
void |
setFactory(Factory factory)
When a factory creates an instance of a class implementing this interface
this method is called to register the factory that created the instance.
|
public Factory getFactory()
getFactory
in class AbstractAnalyzer<Expression>
public void setFactory(Factory factory)
FactoryManaged
setFactory
in interface FactoryManaged
factory
- the factory that manages the instance.public Expression analyze() throws AnalysisException
analyze
in interface Analyzer<Expression>
analyze
in interface TagAnalyzer
AnalysisException
Copyright © 2013 Verhas and Verhas Software Craftsmen. All Rights Reserved.