org.aspectj.org.eclipse.jdt.internal.compiler.lookup
Class Binding

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Binding
Direct Known Subclasses:
ImportBinding, MethodBinding, PackageBinding, PointcutBinding, ProblemBinding, TypeBinding, VariableBinding

public abstract class Binding
extends java.lang.Object


Field Summary
static ReferenceBinding[] ANY_EXCEPTION
           
static int ARRAY_TYPE
           
static int BASE_TYPE
           
static int DefaultLocationArrayContents
          Bit in defaultNullness bit vectors, representing the enum constant DefaultLocation#ARRAY_CONTENTS TODO: this constant is not yet used, due to difficulty to discern these annotations between SE5 / SE8
static int DefaultLocationField
          Bit in defaultNullness bit vectors, representing the enum constant DefaultLocation#FIELD
static int DefaultLocationParameter
          Bit in defaultNullness bit vectors, representing the enum constant DefaultLocation#PARAMETER
static int DefaultLocationReturnType
          Bit in defaultNullness bit vectors, representing the enum constant DefaultLocation#RETURN_TYPE
static int DefaultLocationTypeArgument
          Bit in defaultNullness bit vectors, representing the enum constant DefaultLocation#TYPE_ARGUMENT
static int DefaultLocationTypeBound
          Bit in defaultNullness bit vectors, representing the enum constant DefaultLocation#TYPE_BOUND
static int DefaultLocationTypeParameter
          Bit in defaultNullness bit vectors, representing the enum constant DefaultLocation#TYPE_PARAMETER
static int FIELD
           
static int GENERIC_TYPE
           
static int IMPORT
           
static int INTERSECTION_CAST_TYPE
           
static int INTERSECTION_TYPE
           
static int LOCAL
           
static int METHOD
           
static AnnotationBinding[] NO_ANNOTATIONS
           
static ElementValuePair[] NO_ELEMENT_VALUE_PAIRS
           
static ReferenceBinding[] NO_EXCEPTIONS
           
static FieldBinding[] NO_FIELDS
           
static ReferenceBinding[] NO_MEMBER_TYPES
           
static MethodBinding[] NO_METHODS
           
static int NO_NULL_DEFAULT
           
static char[][] NO_PARAMETER_NAMES
           
static TypeBinding[] NO_PARAMETERS
           
static ReferenceBinding[] NO_REFERENCE_TYPES
           
static ReferenceBinding[] NO_SUPERINTERFACES
           
static TypeVariableBinding[] NO_TYPE_VARIABLES
           
static TypeBinding[] NO_TYPES
           
static int NONNULL_BY_DEFAULT
           
static int NULL_UNSPECIFIED_BY_DEFAULT
           
static int NullnessDefaultMASK
           
static int PACKAGE
           
static int PARAMETERIZED_TYPE
           
static int POLY_TYPE
           
static int RAW_TYPE
           
static int TYPE
           
static int TYPE_PARAMETER
           
static int TYPE_USE
           
static FieldBinding[] UNINITIALIZED_FIELDS
           
static MethodBinding[] UNINITIALIZED_METHODS
           
static ReferenceBinding[] UNINITIALIZED_REFERENCE_TYPES
           
static int VARIABLE
           
static int WILDCARD_TYPE
           
 
Constructor Summary
Binding()
           
 
Method Summary
 char[] computeUniqueKey()
           
 char[] computeUniqueKey(boolean isLeaf)
           
 AnnotationBinding[] getAnnotations()
           
 long getAnnotationTagBits()
          Compute the tagbits for standard annotations.
 void initializeDeprecatedAnnotationTagBits()
          Compute the tag bits for @Deprecated annotations, avoiding resolving entire annotation if not necessary.
 boolean isAnnotationType()
           
 boolean isParameter()
           
 boolean isTaggedRepeatable()
           
 boolean isValidBinding()
           
 boolean isVolatile()
           
abstract  int kind()
           
 int problemId()
           
abstract  char[] readableName()
           
 void setAnnotations(AnnotationBinding[] annotations)
           
 void setAnnotations(AnnotationBinding[] annotations, Scope scope)
           
 char[] shortReadableName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD

public static final int FIELD
See Also:
Constant Field Values

LOCAL

public static final int LOCAL
See Also:
Constant Field Values

VARIABLE

public static final int VARIABLE
See Also:
Constant Field Values

TYPE

public static final int TYPE
See Also:
Constant Field Values

METHOD

public static final int METHOD
See Also:
Constant Field Values

PACKAGE

public static final int PACKAGE
See Also:
Constant Field Values

IMPORT

public static final int IMPORT
See Also:
Constant Field Values

ARRAY_TYPE

public static final int ARRAY_TYPE
See Also:
Constant Field Values

BASE_TYPE

public static final int BASE_TYPE
See Also:
Constant Field Values

PARAMETERIZED_TYPE

public static final int PARAMETERIZED_TYPE
See Also:
Constant Field Values

WILDCARD_TYPE

public static final int WILDCARD_TYPE
See Also:
Constant Field Values

RAW_TYPE

public static final int RAW_TYPE
See Also:
Constant Field Values

GENERIC_TYPE

public static final int GENERIC_TYPE
See Also:
Constant Field Values

TYPE_PARAMETER

public static final int TYPE_PARAMETER
See Also:
Constant Field Values

INTERSECTION_TYPE

public static final int INTERSECTION_TYPE
See Also:
Constant Field Values

TYPE_USE

public static final int TYPE_USE
See Also:
Constant Field Values

INTERSECTION_CAST_TYPE

public static final int INTERSECTION_CAST_TYPE
See Also:
Constant Field Values

POLY_TYPE

public static final int POLY_TYPE
See Also:
Constant Field Values

NO_TYPES

public static final TypeBinding[] NO_TYPES

NO_REFERENCE_TYPES

public static final ReferenceBinding[] NO_REFERENCE_TYPES

NO_PARAMETERS

public static final TypeBinding[] NO_PARAMETERS

NO_EXCEPTIONS

public static final ReferenceBinding[] NO_EXCEPTIONS

ANY_EXCEPTION

public static final ReferenceBinding[] ANY_EXCEPTION

NO_FIELDS

public static final FieldBinding[] NO_FIELDS

NO_METHODS

public static final MethodBinding[] NO_METHODS

NO_SUPERINTERFACES

public static final ReferenceBinding[] NO_SUPERINTERFACES

NO_MEMBER_TYPES

public static final ReferenceBinding[] NO_MEMBER_TYPES

NO_TYPE_VARIABLES

public static final TypeVariableBinding[] NO_TYPE_VARIABLES

NO_ANNOTATIONS

public static final AnnotationBinding[] NO_ANNOTATIONS

NO_ELEMENT_VALUE_PAIRS

public static final ElementValuePair[] NO_ELEMENT_VALUE_PAIRS

NO_PARAMETER_NAMES

public static final char[][] NO_PARAMETER_NAMES

UNINITIALIZED_FIELDS

public static final FieldBinding[] UNINITIALIZED_FIELDS

UNINITIALIZED_METHODS

public static final MethodBinding[] UNINITIALIZED_METHODS

UNINITIALIZED_REFERENCE_TYPES

public static final ReferenceBinding[] UNINITIALIZED_REFERENCE_TYPES

NO_NULL_DEFAULT

public static final int NO_NULL_DEFAULT
See Also:
Constant Field Values

NONNULL_BY_DEFAULT

public static final int NONNULL_BY_DEFAULT
See Also:
Constant Field Values

NULL_UNSPECIFIED_BY_DEFAULT

public static final int NULL_UNSPECIFIED_BY_DEFAULT
See Also:
Constant Field Values

DefaultLocationParameter

public static final int DefaultLocationParameter
Bit in defaultNullness bit vectors, representing the enum constant DefaultLocation#PARAMETER

See Also:
Constant Field Values

DefaultLocationReturnType

public static final int DefaultLocationReturnType
Bit in defaultNullness bit vectors, representing the enum constant DefaultLocation#RETURN_TYPE

See Also:
Constant Field Values

DefaultLocationField

public static final int DefaultLocationField
Bit in defaultNullness bit vectors, representing the enum constant DefaultLocation#FIELD

See Also:
Constant Field Values

DefaultLocationTypeArgument

public static final int DefaultLocationTypeArgument
Bit in defaultNullness bit vectors, representing the enum constant DefaultLocation#TYPE_ARGUMENT

See Also:
Constant Field Values

DefaultLocationTypeParameter

public static final int DefaultLocationTypeParameter
Bit in defaultNullness bit vectors, representing the enum constant DefaultLocation#TYPE_PARAMETER

See Also:
Constant Field Values

DefaultLocationTypeBound

public static final int DefaultLocationTypeBound
Bit in defaultNullness bit vectors, representing the enum constant DefaultLocation#TYPE_BOUND

See Also:
Constant Field Values

DefaultLocationArrayContents

public static final int DefaultLocationArrayContents
Bit in defaultNullness bit vectors, representing the enum constant DefaultLocation#ARRAY_CONTENTS TODO: this constant is not yet used, due to difficulty to discern these annotations between SE5 / SE8

See Also:
Constant Field Values

NullnessDefaultMASK

public static final int NullnessDefaultMASK
See Also:
Constant Field Values
Constructor Detail

Binding

public Binding()
Method Detail

kind

public abstract int kind()

computeUniqueKey

public char[] computeUniqueKey()

computeUniqueKey

public char[] computeUniqueKey(boolean isLeaf)

getAnnotationTagBits

public long getAnnotationTagBits()
Compute the tagbits for standard annotations. For source types, these could require lazily resolving corresponding annotation nodes, in case of forward references. For type use bindings, this method still returns the tagbits corresponding to the type declaration binding.

See Also:
SourceTypeBinding.getAnnotationTagBits()

initializeDeprecatedAnnotationTagBits

public void initializeDeprecatedAnnotationTagBits()
Compute the tag bits for @Deprecated annotations, avoiding resolving entire annotation if not necessary.

See Also:
SourceTypeBinding.initializeDeprecatedAnnotationTagBits()

isAnnotationType

public boolean isAnnotationType()

isValidBinding

public final boolean isValidBinding()

isVolatile

public boolean isVolatile()

isTaggedRepeatable

public boolean isTaggedRepeatable()

isParameter

public boolean isParameter()

problemId

public int problemId()

readableName

public abstract char[] readableName()

shortReadableName

public char[] shortReadableName()

getAnnotations

public AnnotationBinding[] getAnnotations()

setAnnotations

public void setAnnotations(AnnotationBinding[] annotations,
                           Scope scope)

setAnnotations

public void setAnnotations(AnnotationBinding[] annotations)