instanceof expression.
For example:
expression instanceof type expression instanceof pattern
| Modifier and Type | Method and Description |
|---|---|
| public ExpressionTree | |
| public PatternTree | Returns: the tested pattern, ornull if this instanceof does not use a patternReturns the tested pattern, or |
| public Tree | getType()
Returns the type for which to check, or |
| getExpression | back to summary |
|---|---|
| public ExpressionTree getExpression() Returns the expression to be tested.
| |
| getPattern | back to summary |
|---|---|
| public PatternTree getPattern() Returns the tested pattern, or For instanceof with a pattern, i.e. in the following form: expression instanceof patternreturns the pattern. For expression instanceof typereturns null.
| |
| getType | back to summary |
|---|---|
| public Tree getType() Returns the type for which to check, or For expression instanceof typereturns the type. For expression instanceof type variable_namereturns the type. For instanceof with a pattern, i.e. in the following form: expression instanceof patternreturns null.
| |