- All Superinterfaces:
- Tree
- All Known Subinterfaces:
- AnnotationExpressionT, ArrayAccessExpressionT, AssignmentExpressionT, DereferenceExpressionT, DotExpressionT, IdentifierExpressionT, InfixExpressionT, InvokeExpressionT, ListExpressionT, LiteralExpressionT, MethodCallExpressionT, NewArrayExpressionT, NewClassExpressionT, OperatorExpressionT, QuestionExpressionT, TypecastExpressionT, TypeExpressionT, UnaryExpressionT, WrapperExpressionT
- public interface ExpressionT
- extends Tree
Common supertypes for all expressions. If it is a primary,
selector, or method invocation, it has a name. Otherwise, it is an
operator of some sort and has operands. With each enumerated
constant is a description of which fields are non-null and
useful.
| Methods inherited from interface javax.ide.model.java.source.tree.Tree |
accept, accept, addSelf, addSelf, addSelfAfter, addSelfBefore, clearProperty, cloneSelf, getChildren, getOwningFile, getParent, getPosition, getProperty, getSiblingAfter, getSiblingBefore, getSiblings, getTreeKind, isSynthetic, removeSelf, replaceSelf, setProperty |
EMPTY_ARRAY
public static final ExpressionT[] EMPTY_ARRAY
getExpressionKind
public ExpressionT.ExpressionKind getExpressionKind()
- Identifies the operation this expression is performing.
getFirstOperand
public ExpressionT getFirstOperand()
getSecondOperand
public ExpressionT getSecondOperand()
getThirdOperand
public ExpressionT getThirdOperand()
getOperands
public java.util.List getOperands()
getOperandCount
public int getOperandCount()
getOperandAt
public ExpressionT getOperandAt(int index)
- Gets the operand at the specified index in the operand array.