- All Superinterfaces:
ExpressionTree
,Tree
A tree node for an 'instanceof' expression.
For example:
expression instanceof type
- Since:
- 9
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the expression whose type is being checked.getType()
Returns the type expression.Methods inherited from interface org.openjdk.nashorn.api.tree.Tree
accept, getEndPosition, getKind, getStartPosition
-
Method Details
-
getExpression
ExpressionTree getExpression()Returns the expression whose type is being checked.- Returns:
- the expression whose type is being checked
-
getType
Tree getType()Returns the type expression.- Returns:
- the type expression
-