Uses of Interface
com.sun.source.tree.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 Description interfaceAnnotatedTypeTreeA tree node for an annotated type.interfaceAnnotationTreeA tree node for an annotation.interfaceArrayAccessTreeA tree node for an array access expression.interfaceAssignmentTreeA tree node for an assignment expression.interfaceBinaryTreeA tree node for a binary expression.interfaceCompoundAssignmentTreeA tree node for compound assignment operator.interfaceConditionalExpressionTreeA tree node for the conditional operator ?interfaceErroneousTreeA tree node to stand in for a malformed expression.interfaceIdentifierTreeA tree node for an identifier expression.interfaceInstanceOfTreeA tree node for aninstanceofexpression.interfaceLambdaExpressionTreeA tree node for a lambda expression.interfaceLiteralTreeA tree node for a literal expression.interfaceMemberReferenceTreeA tree node for a member reference expression.interfaceMemberSelectTreeA tree node for a member access expression.interfaceMethodInvocationTreeA tree node for a method invocation expression.interfaceNewArrayTreeA tree node for an expression to create a new instance of an array.interfaceNewClassTreeA tree node to declare a new instance of a class.interfaceParenthesizedTreeA tree node for a parenthesized expression.interfaceSwitchExpressionTreeA tree node for aswitchexpression.interfaceTypeCastTreeA tree node for a type cast expression.interfaceUnaryTreeA tree node for postfix and unary expressions.Methods in com.sun.source.tree that return ExpressionTree Modifier and Type Method Description ExpressionTreeAssertTree. getCondition()Returns the condition being asserted.ExpressionTreeConditionalExpressionTree. getCondition()Returns the condition.ExpressionTreeDoWhileLoopTree. getCondition()Returns the condition of the loop.ExpressionTreeForLoopTree. getCondition()Returns the condition of theforstatement.ExpressionTreeIfTree. getCondition()Returns the condition of the if-statement.ExpressionTreeWhileLoopTree. getCondition()Returns the condition of the loop.ExpressionTreeAssertTree. getDetail()Returns the detail expression.ExpressionTreeNewClassTree. getEnclosingExpression()Returns the enclosing expression, ornullif none.ExpressionTreeArrayAccessTree. getExpression()Returns the expression for the array being accessed.ExpressionTreeAssignmentTree. getExpression()Returns the expression being assigned to the variable.ExpressionTreeCaseTree. getExpression()Deprecated.Please useCaseTree.getExpressions().ExpressionTreeCompoundAssignmentTree. getExpression()Returns the expression on the right hand side of the compound assignment.ExpressionTreeEnhancedForLoopTree. getExpression()Returns the expression yielding the values for the control variable.ExpressionTreeExpressionStatementTree. getExpression()Returns the expression constituting this statement.ExpressionTreeInstanceOfTree. getExpression()Returns the expression to be tested.ExpressionTreeMemberSelectTree. getExpression()Returns the expression for which a member is to be selected.ExpressionTreeParenthesizedTree. getExpression()Returns the expression within the parentheses.ExpressionTreeReturnTree. getExpression()Returns the expression to be returned.ExpressionTreeSwitchExpressionTree. getExpression()Returns the expression for theswitchexpression.ExpressionTreeSwitchTree. getExpression()Returns the expression for theswitchstatement.ExpressionTreeSynchronizedTree. getExpression()Returns the expression on which to synchronize.ExpressionTreeThrowTree. getExpression()Returns the expression to be thrown.ExpressionTreeTypeCastTree. getExpression()Returns the expression being cast.ExpressionTreeUnaryTree. getExpression()Returns the expression that is the operand of the unary operator.ExpressionTreeConditionalExpressionTree. getFalseExpression()Returns the expression to be evaluated if the condition is false.ExpressionTreeNewClassTree. getIdentifier()Returns the name of the class being instantiated.ExpressionTreeArrayAccessTree. getIndex()Returns the expression for the index.ExpressionTreeVariableTree. getInitializer()Returns the initializer for the variable, ornullif none.ExpressionTreeBinaryTree. getLeftOperand()Returns the left (first) operand of the expression.ExpressionTreeMethodInvocationTree. getMethodSelect()Returns the expression identifying the method to be invoked.ExpressionTreeRequiresTree. getModuleName()Returns the name of the module that is required.ExpressionTreeModuleTree. getName()Returns the name of the module.ExpressionTreeVariableTree. getNameExpression()Returns the qualified identifier for the name being "declared".ExpressionTreeCompilationUnitTree. getPackageName()Returns the name contained in any package declaration at the head of this compilation unit, ornullif there is no package declaration.ExpressionTreeExportsTree. getPackageName()Returns the name of the package to be exported.ExpressionTreeOpensTree. getPackageName()Returns the name of the package to be opened.ExpressionTreePackageTree. getPackageName()Returns the name of the package being declared.ExpressionTreeMemberReferenceTree. getQualifierExpression()Returns the qualifier expression for the reference.ExpressionTreeBinaryTree. getRightOperand()Returns the right (second) operand of the expression.ExpressionTreeProvidesTree. getServiceName()Returns the name of the service type being provided.ExpressionTreeUsesTree. getServiceName()Returns the name of the service type.ExpressionTreeConditionalExpressionTree. getTrueExpression()Returns the expression to be evaluated if the condition is true.ExpressionTreeAnnotatedTypeTree. getUnderlyingType()Returns the underlying type with which the annotations are associated.ExpressionTreeYieldTree. getValue()Returns the expression for thisyieldstatement.ExpressionTreeAssignmentTree. getVariable()Returns the variable being assigned to.ExpressionTreeCompoundAssignmentTree. getVariable()Returns the variable on the left hand side of the compound assignment.Methods in com.sun.source.tree that return types with arguments of type ExpressionTree Modifier and Type Method Description List<? extends ExpressionTree>AnnotationTree. getArguments()Returns the arguments, if any, for the annotation.List<? extends ExpressionTree>MethodInvocationTree. getArguments()Returns the arguments for the method invocation.List<? extends ExpressionTree>NewClassTree. getArguments()Returns the arguments for the constructor to be invoked.List<? extends ExpressionTree>NewArrayTree. getDimensions()Returns the dimension expressions for the type.List<? extends ExpressionTree>CaseTree. getExpressions()Returns the labels for this case.List<? extends ExpressionTree>ProvidesTree. getImplementationNames()Returns the names of the implementation types being provided.List<? extends ExpressionTree>NewArrayTree. getInitializers()Returns the initializer expressions.List<? extends ExpressionTree>ExportsTree. getModuleNames()Returns the names of the modules to which the package is exported, or null, if the package is exported to all modules.List<? extends ExpressionTree>OpensTree. getModuleNames()Returns the names of the modules to which the package is opened, or null, if the package is opened to all modules.List<? extends ExpressionTree>MethodTree. getThrows()Returns the exceptions listed as being thrown by this method.List<? extends ExpressionTree>MemberReferenceTree. getTypeArguments()Returns the type arguments for the reference.