Uses of Class
org.oristool.lello.ast.Expression
Package
Description
Provides classes for AST representation.
Parsing of input strings.
AST visitors.
-
Uses of Expression in org.oristool.lello.ast
Modifier and TypeClassDescriptionclass
Represents a binary expression.class
Represents an expression enclosed in brackets.class
Represents a constant expression.class
Represents an expression consisting of a function call.class
Represents a unary expression.class
Represents an expression consisting of a variable reference.Modifier and TypeMethodDescriptionBrackets.copy()
Creates a copy of this object.abstract Expression
Expression.copy()
Creates a copy of the object.FunctionCall.copy()
Creates a copy of this object.Brackets.getExpr()
Retrieves the enclosed expression.UnaryExpression.getExpr()
Retrieves the operand expression.BinaryExpression.getLeft()
Retrieves the left hand side expression.BinaryExpression.getRight()
Retrieves the right hand side expression.BinaryExpression.simplify
(Bindings bindings, SymbolicVisitor visitor) Brackets.simplify
(Bindings bindings, SymbolicVisitor visitor) Constant.simplify
(Bindings bindings, SymbolicVisitor visitor) abstract Expression
Expression.simplify
(Bindings bindings, SymbolicVisitor visitor) Tries to simplify this expression.FunctionCall.simplify
(Bindings bindings, SymbolicVisitor visitor) UnaryExpression.simplify
(Bindings bindings, SymbolicVisitor visitor) Variable.simplify
(Bindings bindings, SymbolicVisitor visitor) Modifier and TypeMethodDescriptionBrackets.getExpressions()
Retrieves the enclosed expressions, which are the components of the vector.FunctionCall.getParameters()
Retrieves the argument list of the call.ModifierConstructorDescriptionBinaryExpression
(Expression left, String op, Expression right) Initializes a new binary expression.Brackets
(Expression enclosed) Initializes a new expression in brackets.UnaryExpression
(UnaryExpression.UnaryOperationType type, String op, Expression expr) Initializes a new unary expression.ModifierConstructorDescriptionBrackets
(List<Expression> expressions) Initializes a new vector, which is a list of expressions enclosed in brackets.FunctionCall
(String name, List<Expression> parameters) Initializes a new function call expression. -
Uses of Expression in org.oristool.lello.parse
Modifier and TypeMethodDescriptionLelloParser.parse
(TerminalStream terminals) Parses a stream of terminal symbols and returns the parsed expression. -
Uses of Expression in org.oristool.lello.visitor
Modifier and TypeMethodDescriptionDefaultSimplification.visitBinaryExpression
(Bindings bindings, BinaryExpression e) SymbolicVisitor.visitBinaryExpression
(Bindings bindings, BinaryExpression e) Called by a binary expression.DefaultSimplification.visitBrackets
(Bindings bindings, Brackets e) SymbolicVisitor.visitBrackets
(Bindings bindings, Brackets e) Called by a bracket expression.DefaultSimplification.visitConstant
(Bindings bindings, Constant e) SymbolicVisitor.visitConstant
(Bindings bindings, Constant e) Called by a constant.DefaultSimplification.visitFunctionCall
(Bindings bindings, FunctionCall e) SymbolicVisitor.visitFunctionCall
(Bindings bindings, FunctionCall e) Called by a function call expression.DefaultSimplification.visitUnaryExpression
(Bindings bindings, UnaryExpression e) SymbolicVisitor.visitUnaryExpression
(Bindings bindings, UnaryExpression e) Called by an unary expression.DefaultSimplification.visitVariable
(Bindings bindings, Variable e) SymbolicVisitor.visitVariable
(Bindings bindings, Variable e) Called by a variable reference.Modifier and TypeMethodDescriptionDefaultFormatter.visitExpression
(Expression e) FormatVisitor.visitExpression
(Expression e) Called by an expression when no other method is compatible.