Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

javax.ide.model.java.source.tree
Interface ExpressionT

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.


Nested Class Summary
static class ExpressionT.ExpressionKind
          An enumeration identifying which kind of expression this is.
 
Field Summary
static ExpressionT[] EMPTY_ARRAY
           
 
Method Summary
 ExpressionT.ExpressionKind getExpressionKind()
          Identifies the operation this expression is performing.
 ExpressionT getFirstOperand()
           
 ExpressionT getOperandAt(int index)
          Gets the operand at the specified index in the operand array.
 int getOperandCount()
           
 java.util.List getOperands()
           
 ExpressionT getSecondOperand()
           
 ExpressionT getThirdOperand()
           
 
Methods inherited from interface javax.ide.model.java.source.tree.Tree
accept, addSelf, addSelf, addSelfAfter, addSelfBefore, clearProperty, cloneSelf, getChildren, getOwningFile, getParent, getPosition, getProperty, getSiblingAfter, getSiblingBefore, getSiblings, getTreeKind, isSynthetic, removeSelf, replaceSelf, setProperty
 

Field Detail

EMPTY_ARRAY

static final ExpressionT[] EMPTY_ARRAY
Method Detail

getExpressionKind

ExpressionT.ExpressionKind getExpressionKind()
Identifies the operation this expression is performing.


getFirstOperand

ExpressionT getFirstOperand()
Returns:
the ExpressionT representing the first operand. Non-null if this expression is an operator (and hence has operands).

getSecondOperand

ExpressionT getSecondOperand()
Returns:
the ExpressionT representing the second operand. Non-null if this operator has a second operand.

getThirdOperand

ExpressionT getThirdOperand()
Returns:
the ExpressionT representing the third operand. Non-null if this has a third operand, e.g. "x? x: x".

getOperands

java.util.List getOperands()
Returns:
the array of ExpressionTs. Always non-null. May be zero-length. Returns a collection of ExpressionTs.

List of ExpressionTs.


getOperandCount

int getOperandCount()
Returns:
The size of the operand array.

getOperandAt

ExpressionT getOperandAt(int index)
Gets the operand at the specified index in the operand array.

Parameters:
index - 0-based.
Returns:
Null if the indicated operand doesn't exist.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

Copyright © 1997, 2009, Oracle. All rights reserved.