Class ImplicitVarBinding

java.lang.Object
fr.inria.verveine.extractor.java.utils.ImplicitVarBinding
All Implemented Interfaces:
org.eclipse.jdt.core.dom.IBinding

public class ImplicitVarBinding extends Object implements 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)
  • Field Details

  • Constructor Details

    • ImplicitVarBinding

      protected ImplicitVarBinding(TMethod owner, String name)
  • Method Details

    • getInstance

      public static ImplicitVarBinding getInstance(TMethod tMethod, String name)
    • getAnnotations

      public org.eclipse.jdt.core.dom.IAnnotationBinding[] getAnnotations()
      Specified by:
      getAnnotations in interface org.eclipse.jdt.core.dom.IBinding
    • getJavaElement

      public org.eclipse.jdt.core.IJavaElement getJavaElement()
      Specified by:
      getJavaElement in interface org.eclipse.jdt.core.dom.IBinding
    • getKey

      public String getKey()
      Specified by:
      getKey in interface org.eclipse.jdt.core.dom.IBinding
    • getKind

      public int getKind()
      Specified by:
      getKind in interface org.eclipse.jdt.core.dom.IBinding
    • getModifiers

      public int getModifiers()
      Specified by:
      getModifiers in interface org.eclipse.jdt.core.dom.IBinding
    • getName

      public String getName()
      Specified by:
      getName in interface org.eclipse.jdt.core.dom.IBinding
    • isDeprecated

      public boolean isDeprecated()
      Specified by:
      isDeprecated in interface org.eclipse.jdt.core.dom.IBinding
    • isEqualTo

      public boolean isEqualTo(org.eclipse.jdt.core.dom.IBinding arg0)
      Specified by:
      isEqualTo in interface org.eclipse.jdt.core.dom.IBinding
    • isRecovered

      public boolean isRecovered()
      Specified by:
      isRecovered in interface org.eclipse.jdt.core.dom.IBinding
    • isSynthetic

      public boolean isSynthetic()
      Specified by:
      isSynthetic in interface org.eclipse.jdt.core.dom.IBinding