Package org.openlca.expressions
Class AbstractExpression
java.lang.Object
org.openlca.expressions.AbstractExpression
- All Implemented Interfaces:
Expression
- Direct Known Subclasses:
AbstractNumericOperator,And,If,OpExponentiation,Or
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddArgument(int index, Expression expression) voidaddArgument(Expression expression) voidcheck()protected voidcheckArgument(int position, Class<?> clazz) protected voidcheckArguments(Class<?>[] types) protected voidcheckArgumentsOfSameType(Class<?> clazz) protected voidintintgetLine()voidsetPosition(int line, int column) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openlca.expressions.Expression
evaluate, getName, getResultType
-
Field Details
-
arguments
-
line
protected int line -
column
protected int column
-
-
Constructor Details
-
AbstractExpression
public AbstractExpression()
-
-
Method Details
-
addArgument
- Specified by:
addArgumentin interfaceExpression
-
addArgument
- Specified by:
addArgumentin interfaceExpression
-
setPosition
public void setPosition(int line, int column) - Specified by:
setPositionin interfaceExpression
-
getLine
public int getLine()- Specified by:
getLinein interfaceExpression
-
getColumn
public int getColumn()- Specified by:
getColumnin interfaceExpression
-
check
- Specified by:
checkin interfaceExpression- Throws:
ExpressionException
-
checkArguments
- Throws:
ExpressionException
-
checkArgument
- Throws:
ExpressionException
-
checkNoArguments
- Throws:
ExpressionException
-
checkArgumentsOfSameType
- Throws:
ExpressionException
-