public class Factor
extends java.lang.Object
Factor is either variable, identifier, string literal, number literal or an expression
surrounded by brackets.| Constructor and Description |
|---|
Factor(Expression expression) |
Factor(NumberLiteral number) |
Factor(StringLiteral string) |
Factor(Variable variable) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
evaluate(Configuration config,
Scope scope) |
java.lang.String |
toString()
Returns a string representation of this
Term, useful for debugging. |
public Factor(Variable variable)
public Factor(NumberLiteral number)
public Factor(StringLiteral string)
public Factor(Expression expression)
public java.lang.Object evaluate(Configuration config, Scope scope) throws CarrotException
CarrotExceptionpublic java.lang.String toString()
Term, useful for debugging.toString in class java.lang.Object