|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.core.dom.ASTNode
org.eclipse.jdt.core.dom.Expression
org.eclipse.jdt.core.dom.ConditionalExpression
public class ConditionalExpression
Conditional expression AST node type.
ConditionalExpression: Expression ? Expression : Expression
Field Summary | |
---|---|
static ChildPropertyDescriptor |
ELSE_EXPRESSION_PROPERTY
The "elseExpression" structural property of this node type. |
static ChildPropertyDescriptor |
EXPRESSION_PROPERTY
The "expression" structural property of this node type. |
static ChildPropertyDescriptor |
THEN_EXPRESSION_PROPERTY
The "thenExpression" structural property of this node type. |
Method Summary | |
---|---|
Expression |
getElseExpression()
Returns the "else" part of this conditional expression. |
Expression |
getExpression()
Returns the condition of this conditional expression. |
Expression |
getThenExpression()
Returns the "then" part of this conditional expression. |
static java.util.List |
propertyDescriptors(int apiLevel)
Returns a list of structural property descriptors for this node type. |
void |
setElseExpression(Expression expression)
Sets the "else" part of this conditional expression. |
void |
setExpression(Expression expression)
Sets the condition of this conditional expression. |
void |
setThenExpression(Expression expression)
Sets the "then" part of this conditional expression. |
Methods inherited from class org.eclipse.jdt.core.dom.Expression |
---|
resolveBoxing, resolveConstantExpressionValue, resolveTypeBinding, resolveUnboxing |
Methods inherited from class org.eclipse.jdt.core.dom.ASTNode |
---|
accept, copySubtree, copySubtrees, delete, equals, getAST, getFlags, getLength, getLocationInParent, getNodeType, getParent, getProperty, getRoot, getStartPosition, getStructuralProperty, hashCode, nodeClassForType, properties, setFlags, setProperty, setSourceRange, setStructuralProperty, structuralPropertiesForType, subtreeBytes, subtreeMatch, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ChildPropertyDescriptor EXPRESSION_PROPERTY
public static final ChildPropertyDescriptor THEN_EXPRESSION_PROPERTY
public static final ChildPropertyDescriptor ELSE_EXPRESSION_PROPERTY
Method Detail |
---|
public static java.util.List propertyDescriptors(int apiLevel)
apiLevel
- the API level; one of the
AST.JLS*
constants
StructuralPropertyDescriptor
)public Expression getExpression()
public void setExpression(Expression expression)
expression
- the condition node
java.lang.IllegalArgumentException
- if:
public Expression getThenExpression()
public void setThenExpression(Expression expression)
expression
- the "then" expression node
java.lang.IllegalArgumentException
- if:
public Expression getElseExpression()
public void setElseExpression(Expression expression)
expression
- the "else" expression node
java.lang.IllegalArgumentException
- if:
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |