Interface Expression
-
- All Superinterfaces:
ASTNode
- All Known Implementing Classes:
AnnotationExpr,ArrayAccessExpr,ArrayInitExpr,BinaryExpr,CastExpr,ClassExpr,DynamicConstantExpr,FieldAccessExpr,InstanceOfExpr,InvokeDynamicExpr,LambdaExpr,LiteralExpr,MethodCallExpr,MethodRefExpr,NewArrayExpr,NewExpr,SuperExpr,SwitchExpr,TernaryExpr,ThisExpr,UnaryExpr,VarRefExpr
public interface Expression extends ASTNode
Sealed interface representing all expression types in the source AST.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SourceTypegetType()Gets the inferred type of this expression.-
Methods inherited from interface com.tonic.analysis.source.ast.ASTNode
accept, deepClone, findAll, findAll, findAncestor, findFirst, findFirst, getChildren, getLocation, getParent, getRoot, isDescendantOf, remove, replaceWith, setParent, stream, stream, walk
-
-
-
-
Method Detail
-
getType
SourceType getType()
Gets the inferred type of this expression.- Returns:
- the type of this expression
-
-