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

E13403-03

oracle.javatools.parser.java.v2.model.expression
Interface SourceDereferenceExpression

All Superinterfaces:
CompiledAccessExpression, CompiledExpression, Element, JavaElement, JavaHasType, SourceElement, SourceExpression, SourceOperatorExpression
All Known Subinterfaces:
SourceArrayAccessExpression, SourceDotExpression, SourceInvokeExpression, SourceMethodCallExpression, SourceNewClassExpression

public interface SourceDereferenceExpression
extends SourceOperatorExpression, CompiledAccessExpression

A SourceDereferenceExpression is a common base expression representing an operator that performs a dereference. The three dereference expressions are: array access, method call, and dot dereference.


Field Summary
 
Fields inherited from interface oracle.javatools.parser.java.v2.model.expression.SourceExpression
EMPTY_ARRAY
 
Fields inherited from interface oracle.javatools.parser.java.v2.model.SourceElement
CHILDREN_ALL, CHILDREN_BLANKLINES, CHILDREN_COMMENTS, CHILDREN_default, CHILDREN_none, CHILDREN_REGULAR, PRINT_ALL, REFORMAT_ALL, REFORMAT_INDENT
 
Method Summary
 SourceExpression getLhsOperand()
           
 void setLhsOperand(SourceExpression e)
          Attempts to set the lhs operand for this expression.
 
Methods inherited from interface oracle.javatools.parser.java.v2.model.expression.SourceExpression
getConstantValue, getExpressionCode, getFirstOperand, getOperandAt, getOperandCount, getOperands, getOperatorCode, getSecondOperand, getThirdOperand
 
Methods inherited from interface oracle.javatools.parser.java.v2.model.SourceElement
addSelf, addSelf, addSelfAfter, addSelfBefore, clearBinding, cloneSelf, compile, getBinding, getChildren, getChildren, getCompiledObject, getContainedElements, getEndOffset, getOwningFile, getOwningSourceFile, getParent, getSiblingAfter, getSiblingBefore, getSiblings, getSiblings, getStartOffset, getSymbolKind, getText, print, print, reformatSelf, removeSelf, replaceSelf, resolve, setBinding, setContext, visitSelf
 
Methods inherited from interface oracle.javatools.parser.java.v2.model.expression.CompiledExpression
getResolvedObject
 
Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaHasType
getResolvedType, getUnresolvedType
 
Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaElement
getElementKind, getFile, getModifiers, getOwner, getSourceElement, isDeprecated, isFinal, isHidden, isSourceElement, isSynthetic, printCompiledInfo
 
Methods inherited from interface oracle.javatools.parser.java.v2.model.expression.CompiledAccessExpression
getResolvedLhs
 

Method Detail

getLhsOperand

SourceExpression getLhsOperand()
Returns:
The lhs operand of this dereference. Null if none. If this is a dot dereference... well, you can figure that one out. If this is an array access, the lhs operand will be the array variable. If this is a method call, the lhs operand is optional. If this is a class creator, the lhs operand is optional. If there is a lhs operand, it means that this is a qualified class creator and the lhs operand is the outer class instance being used.

setLhsOperand

void setLhsOperand(SourceExpression e)
Attempts to set the lhs operand for this expression.

Parameters:
e - If null, then this will remove the lhs operand (legal only for method calls).
Throws:
java.lang.UnsupportedOperationException - if this operation is illegal.

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.