|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IEclipseVariableQuery
Interface to query variables from the TAC infrastructure. Variables are lazily determined by most TAC classes, and this interface is used to do so.
EclipseTACInstructionFactory
,
TACInstruction
,
EclipseAbstractFieldAccess
Method Summary | |
---|---|
ThisVariable |
implicitThisVariable(IBinding accessedElement)
Determines the implicit this variable for a method call or field access. |
SourceVariable |
sourceVariable(IVariableBinding binding)
Determines the variable for the given parameter or local variable binding. |
SuperVariable |
superVariable(Name qualifier)
Determines the super variable, taking a possible qualifier into account. |
ThisVariable |
thisVariable()
Returns the this variable, if the surrounding method is an
instance method. |
TypeVariable |
typeVariable(ITypeBinding binding)
Determines the variable for a given type binding. |
Variable |
variable(ASTNode astNode)
Returns the variable representing the result of evaluating the given AST node. |
Method Detail |
---|
Variable variable(ASTNode astNode)
astNode
- Must be a node that evaluates to a value (usually an
Expression
.
SourceVariable sourceVariable(IVariableBinding binding)
binding
- Binding for a parameter or local variable.
TypeVariable typeVariable(ITypeBinding binding)
binding
- Type binding.
ThisVariable thisVariable()
this
variable, if the surrounding method is an
instance method.
this
variable, if the surrounding method is an
instance method, null
otherwise.ThisVariable implicitThisVariable(IBinding accessedElement)
accessedElement
- The element being accessed with an implicit this.
Must be a IMethodBinding
for a method or constructor
or a IVariableBinding
for a field.
IllegalArgumentException
- is given binding is not a constructor, method or field.SuperVariable superVariable(Name qualifier)
qualifier
- Qualifier for super access; null
for unqualified super.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |