|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IParserFactory
Factory for creating the ASTNodes from the parser
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_OPERATOR_CHARACTERS
The default set of characters, which could form an operator |
Method Summary | |
---|---|
FunctionNode |
createAST(ASTNode headExpr)
Creates a new function with no arguments from the given header expression . |
ASTNode |
createDouble(java.lang.String doubleString)
Create an double node from the given double value string |
FractionNode |
createFraction(IntegerNode numerator,
IntegerNode denominator)
Create a "fractional" number |
FunctionNode |
createFunction(SymbolNode head)
Creates a new function with head head and 0 arguments. |
FunctionNode |
createFunction(SymbolNode head,
ASTNode arg0)
Creates a new function with head head and 1 argument. |
FunctionNode |
createFunction(SymbolNode head,
ASTNode arg0,
ASTNode arg1)
Creates a new function with head head and 2 arguments. |
IntegerNode |
createInteger(int integerValue)
Create an integer node from the given value |
IntegerNode |
createInteger(java.lang.String integerString,
int numberFormat)
Create an integer node from the given string |
StringNode |
createString(java.lang.StringBuffer buffer)
Create a string node from the scanned double quoted string |
SymbolNode |
createSymbol(java.lang.String symbolName)
Create a symbol from the scanned identifier string |
Operator |
get(java.lang.String identifier)
Get the operator for a given identifier string like Times, Plus, Sin,... |
java.lang.String |
getConstantSymbol(java.lang.String symbolString)
|
java.util.Map<java.lang.String,Operator> |
getIdentifier2OperatorMap()
Get the identifier to operator map |
java.util.Map<java.lang.String,java.util.ArrayList<Operator>> |
getOperator2ListMap()
Get the operator-string to possible operator-list map |
java.lang.String |
getOperatorCharacters()
The set of characters, which could form an operator |
java.util.List<Operator> |
getOperatorList(java.lang.String operatorString)
Get the operator-list for a given operator-string |
Field Detail |
---|
static final java.lang.String DEFAULT_OPERATOR_CHARACTERS
Method Detail |
---|
java.lang.String getOperatorCharacters()
java.util.Map<java.lang.String,Operator> getIdentifier2OperatorMap()
java.util.Map<java.lang.String,java.util.ArrayList<Operator>> getOperator2ListMap()
Operator get(java.lang.String identifier)
identifier
-
java.util.List<Operator> getOperatorList(java.lang.String operatorString)
java.lang.String getConstantSymbol(java.lang.String symbolString)
FunctionNode createFunction(SymbolNode head)
head
and 0 arguments.
FunctionNode createFunction(SymbolNode head, ASTNode arg0)
head
and 1 argument.
FunctionNode createFunction(SymbolNode head, ASTNode arg0, ASTNode arg1)
head
and 2 arguments.
FunctionNode createAST(ASTNode headExpr)
ASTNode createDouble(java.lang.String doubleString)
doubleString
-
IntegerNode createInteger(java.lang.String integerString, int numberFormat)
integerString
- the integer number represented as a StringnumberFormat
- the format of the number (usually 10)
IntegerNode createInteger(int integerValue)
integerValue
- the integer number's value
FractionNode createFraction(IntegerNode numerator, IntegerNode denominator)
numerator
- numerator of the fractional numberdenominator
- denominator of the fractional number
StringNode createString(java.lang.StringBuffer buffer)
symbolName
-
SymbolNode createSymbol(java.lang.String symbolName)
symbolName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |