Interface ExpressionDescriptor
- All Superinterfaces:
Serializable
,TetradSerializable
Represents a definition for some expression.
- Version:
- $Id: $Id
- Author:
- Tyler Gibson
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
An enum of positions that an expression can occur in. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
ConstantserialVersionUID=23L
-
Method Summary
Modifier and TypeMethodDescriptioncreateExpression
(Expression... expressions) Creates the actual expression that can be used to evaluate matters from the given expressions.getName()
getName.getPosition.getSignature.getToken()
getToken.
-
Field Details
-
serialVersionUID
static final long serialVersionUIDConstantserialVersionUID=23L
- See Also:
-
-
Method Details
-
getName
String getName()getName.
- Returns:
- the name that the expressions is known under.
-
getToken
String getToken()getToken.
- Returns:
- the token that represents the expression, such as "+".
-
getSignature
ExpressionSignature getSignature()getSignature.
- Returns:
- the signature that should be used.
-
getPosition
ExpressionDescriptor.Position getPosition()getPosition.
- Returns:
- the position that the expression can occur in.
-
createExpression
Creates the actual expression that can be used to evaluate matters from the given expressions.- Parameters:
expressions
- aExpression
object- Returns:
- a
Expression
object - Throws:
ExpressionInitializationException
- if any.
-