Uses of Interface com.sun.source.tree.ExpressionTree (Compiler Tree API )
Date: 2016-12-09

## Uses of Interface
com.sun.source.tree.ExpressionTree

- Packages that use ExpressionTree
  Package | Description
  --- | ---
  com.sun.source.tree | Provides interfaces to represent source code as abstract syntax trees (AST).

- - ### Uses of ExpressionTree in com.sun.source.tree

    Subinterfaces of ExpressionTree in com.sun.source.tree
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `AnnotatedTypeTree` A tree node for an annotated type For example:
    `interface` | `AnnotationTree` A tree node for an annotation.
    `interface` | `ArrayAccessTree` A tree node for an array access expression.
    `interface` | `AssignmentTree` A tree node for an assignment expression.
    `interface` | `BinaryTree` A tree node for a binary expression.
    `interface` | `CompoundAssignmentTree` A tree node for compound assignment operator.
    `interface` | `ConditionalExpressionTree` A tree node for the conditional operator ? :.
    `interface` | `ErroneousTree` A tree node to stand in for a malformed expression.
    `interface` | `IdentifierTree` A tree node for an identifier expression.
    `interface` | `InstanceOfTree` A tree node for an 'instanceof' expression.
    `interface` | `LambdaExpressionTree` A tree node for a lambda expression.
    `interface` | `LiteralTree` A tree node for a literal expression.
    `interface` | `MemberReferenceTree` A tree node for a member reference expression.
    `interface` | `MemberSelectTree` A tree node for a member access expression.
    `interface` | `MethodInvocationTree` A tree node for a method invocation expression.
    `interface` | `NewArrayTree` A tree node for an expression to create a new instance of an array.
    `interface` | `NewClassTree` A tree node to declare a new instance of a class.
    `interface` | `ParenthesizedTree` A tree node for a parenthesized expression.
    `interface` | `TypeCastTree` A tree node for a type cast expression.
    `interface` | `UnaryTree` A tree node for postfix and unary expressions.

    Methods in com.sun.source.tree that return ExpressionTree
    Modifier and Type | Method and Description
    --- | ---
    `ExpressionTree` | IfTree.`getCondition()`
    `ExpressionTree` | WhileLoopTree.`getCondition()`
    `ExpressionTree` | ConditionalExpressionTree.`getCondition()`
    `ExpressionTree` | ForLoopTree.`getCondition()`
    `ExpressionTree` | DoWhileLoopTree.`getCondition()`
    `ExpressionTree` | AssertTree.`getCondition()`
    `ExpressionTree` | AssertTree.`getDetail()`
    `ExpressionTree` | NewClassTree.`getEnclosingExpression()`
    `ExpressionTree` | TypeCastTree.`getExpression()`
    `ExpressionTree` | ThrowTree.`getExpression()`
    `ExpressionTree` | ParenthesizedTree.`getExpression()`
    `ExpressionTree` | InstanceOfTree.`getExpression()`
    `ExpressionTree` | EnhancedForLoopTree.`getExpression()`
    `ExpressionTree` | SynchronizedTree.`getExpression()`
    `ExpressionTree` | CompoundAssignmentTree.`getExpression()`
    `ExpressionTree` | AssignmentTree.`getExpression()`
    `ExpressionTree` | CaseTree.`getExpression()`
    `ExpressionTree` | UnaryTree.`getExpression()`
    `ExpressionTree` | ExpressionStatementTree.`getExpression()`
    `ExpressionTree` | ArrayAccessTree.`getExpression()`
    `ExpressionTree` | MemberSelectTree.`getExpression()`
    `ExpressionTree` | ReturnTree.`getExpression()`
    `ExpressionTree` | SwitchTree.`getExpression()`
    `ExpressionTree` | ConditionalExpressionTree.`getFalseExpression()`
    `ExpressionTree` | NewClassTree.`getIdentifier()`
    `ExpressionTree` | ArrayAccessTree.`getIndex()`
    `ExpressionTree` | VariableTree.`getInitializer()`
    `ExpressionTree` | BinaryTree.`getLeftOperand()`
    `ExpressionTree` | MethodInvocationTree.`getMethodSelect()`
    `ExpressionTree` | VariableTree.`getNameExpression()`
    `ExpressionTree` | CompilationUnitTree.`getPackageName()`
    `ExpressionTree` | MemberReferenceTree.`getQualifierExpression()`
    `ExpressionTree` | BinaryTree.`getRightOperand()`
    `ExpressionTree` | ConditionalExpressionTree.`getTrueExpression()`
    `ExpressionTree` | AnnotatedTypeTree.`getUnderlyingType()`
    `ExpressionTree` | CompoundAssignmentTree.`getVariable()`
    `ExpressionTree` | AssignmentTree.`getVariable()`

    Methods in com.sun.source.tree that return types with arguments of type ExpressionTree
    Modifier and Type | Method and Description
    --- | ---
    `List<? extends ExpressionTree>` | MethodInvocationTree.`getArguments()`
    `List<? extends ExpressionTree>` | AnnotationTree.`getArguments()`
    `List<? extends ExpressionTree>` | NewClassTree.`getArguments()`
    `List<? extends ExpressionTree>` | NewArrayTree.`getDimensions()`
    `List<? extends ExpressionTree>` | NewArrayTree.`getInitializers()`
    `List<? extends ExpressionTree>` | MethodTree.`getThrows()`
    `List<? extends ExpressionTree>` | MemberReferenceTree.`getTypeArguments()`

Copyright © 2005, 2016, Oracle and/or its affiliates. All rights reserved.