Skip navigation links
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.
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.JavaElement |
getElementKind, getFile, getModifiers, getOwner, getSourceElement, isDeprecated, isFinal, isHidden, isSourceElement, isSynthetic, printCompiledInfo |
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.
Skip navigation links
Copyright © 1997, 2013, Oracle. All rights reserved.