Package team.unnamed.mocha.parser.ast
Interface Expression
- All Known Implementing Classes:
AccessExpression,ArrayAccessExpression,BinaryExpression,CallExpression,DoubleExpression,ExecutionScopeExpression,IdentifierExpression,StatementExpression,StringExpression,TernaryConditionalExpression,UnaryExpression
@NonExtendable
public interface Expression
The expression interface. It's the super-interface for
all the expression types.
Expressions are evaluable parts of code, expressions are emitted by the parser.
In Molang, almost every expression evaluates to a numerical value
- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescription<R> Rvisit(@NotNull ExpressionVisitor<R> visitor) Visits this expression with the given visitor.
-
Method Details
-
visit
Visits this expression with the given visitor.- Type Parameters:
R- The visit result return type- Parameters:
visitor- The expression visitor- Returns:
- The visit result
- Since:
- 3.0.0
-