Class ImplicitVarBinding
java.lang.Object
fr.inria.verveine.extractor.java.utils.ImplicitVarBinding
- All Implemented Interfaces:
org.eclipse.jdt.core.dom.IBinding
This is a JDT
IBinding implementor to serve as key for implicit variables (this, super)
Rational: The Famix dictionary needs an IBinding as entity key.
But implicit variables don't have associated JDT binding
So we create this class that will implement a fake IBinding for each implicit variables in each behaviouralEntity it appears in.
The actual key will composed from the binding of its owner behaviouralEntity and its name (this, super)-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classUsed to keep the two possible ImplicitVariable for a given class -
Field Summary
FieldsFields inherited from interface org.eclipse.jdt.core.dom.IBinding
ANNOTATION, MEMBER_VALUE_PAIR, METHOD, MODULE, PACKAGE, TYPE, VARIABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jdt.core.dom.IAnnotationBinding[]static ImplicitVarBindinggetInstance(TMethod tMethod, String name) org.eclipse.jdt.core.IJavaElementgetKey()intgetKind()intgetName()booleanbooleanisEqualTo(org.eclipse.jdt.core.dom.IBinding arg0) booleanbooleanMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jdt.core.dom.IBinding
equals, toString
-
Field Details
-
owner
-
name
-
-
Constructor Details
-
ImplicitVarBinding
-
-
Method Details
-
getInstance
-
getAnnotations
public org.eclipse.jdt.core.dom.IAnnotationBinding[] getAnnotations()- Specified by:
getAnnotationsin interfaceorg.eclipse.jdt.core.dom.IBinding
-
getJavaElement
public org.eclipse.jdt.core.IJavaElement getJavaElement()- Specified by:
getJavaElementin interfaceorg.eclipse.jdt.core.dom.IBinding
-
getKey
- Specified by:
getKeyin interfaceorg.eclipse.jdt.core.dom.IBinding
-
getKind
public int getKind()- Specified by:
getKindin interfaceorg.eclipse.jdt.core.dom.IBinding
-
getModifiers
public int getModifiers()- Specified by:
getModifiersin interfaceorg.eclipse.jdt.core.dom.IBinding
-
getName
- Specified by:
getNamein interfaceorg.eclipse.jdt.core.dom.IBinding
-
isDeprecated
public boolean isDeprecated()- Specified by:
isDeprecatedin interfaceorg.eclipse.jdt.core.dom.IBinding
-
isEqualTo
public boolean isEqualTo(org.eclipse.jdt.core.dom.IBinding arg0) - Specified by:
isEqualToin interfaceorg.eclipse.jdt.core.dom.IBinding
-
isRecovered
public boolean isRecovered()- Specified by:
isRecoveredin interfaceorg.eclipse.jdt.core.dom.IBinding
-
isSynthetic
public boolean isSynthetic()- Specified by:
isSyntheticin interfaceorg.eclipse.jdt.core.dom.IBinding
-