org.eclipse.jdt.internal.compiler.lookup
Class SyntheticMethodBinding

java.lang.Object
  extended by org.eclipse.jdt.internal.compiler.lookup.Binding
      extended by org.eclipse.jdt.internal.compiler.lookup.MethodBinding
          extended by org.eclipse.jdt.internal.compiler.lookup.SyntheticMethodBinding

public class SyntheticMethodBinding
extends MethodBinding


Field Summary
static int BridgeMethod
           
static int ConstructorAccess
           
static int EnumValueOf
           
static int EnumValues
           
static int FieldReadAccess
           
static int FieldWriteAccess
           
 int index
           
static int MethodAccess
           
 int purpose
           
 int sourceStart
           
static int SuperMethodAccess
           
static int SwitchTable
           
 TypeBinding targetEnumType
           
 MethodBinding targetMethod
           
 FieldBinding targetReadField
           
 FieldBinding targetWriteField
           
 
Fields inherited from class org.eclipse.jdt.internal.compiler.lookup.MethodBinding
declaringClass, methodDeclaration, modifiers, overriddenInheritedMethods, parameters, returnType, selector, tagBits, thrownExceptions, typeVariables
 
Fields inherited from class org.eclipse.jdt.internal.compiler.lookup.Binding
ANY_EXCEPTION, ARRAY_TYPE, BASE_TYPE, FIELD, GENERIC_TYPE, IMPORT, INTERSECTION_TYPE, LOCAL, METHOD, NO_ANNOTATIONS, NO_ELEMENT_VALUE_PAIRS, NO_EXCEPTIONS, NO_FIELDS, NO_MEMBER_TYPES, NO_METHODS, NO_PARAMETERS, NO_SUPERINTERFACES, NO_TYPE_VARIABLES, NO_TYPES, PACKAGE, PARAMETERIZED_TYPE, RAW_TYPE, TYPE, TYPE_PARAMETER, UNINITIALIZED_FIELDS, UNINITIALIZED_METHODS, VARIABLE, WILDCARD_TYPE
 
Constructor Summary
SyntheticMethodBinding(FieldBinding targetField, boolean isReadAccess, ReferenceBinding declaringClass)
           
SyntheticMethodBinding(FieldBinding targetField, ReferenceBinding declaringClass, TypeBinding enumBinding, char[] selector)
           
SyntheticMethodBinding(MethodBinding targetMethod, boolean isSuperAccess, ReferenceBinding receiverType)
           
SyntheticMethodBinding(MethodBinding overridenMethodToBridge, MethodBinding targetMethod, SourceTypeBinding declaringClass)
          Construct a bridge method
SyntheticMethodBinding(SourceTypeBinding declaringEnum, char[] selector)
          Construct enum special methods: values or valueOf methods
 
Method Summary
 void initializeConstructorAccessor(MethodBinding accessedConstructor)
          An constructor accessor is a constructor with an extra argument (declaringClass), in case of collision with an existing constructor, then add again an extra argument (declaringClass again).
 void initializeMethodAccessor(MethodBinding accessedMethod, boolean isSuperAccess, ReferenceBinding receiverType)
          An method accessor is a method with an access$N selector, where N is incremented in case of collisions.
 
Methods inherited from class org.eclipse.jdt.internal.compiler.lookup.MethodBinding
areParameterErasuresEqual, areParametersCompatibleWith, areParametersEqual, areTypeVariableErasuresEqual, canBeSeenBy, canBeSeenBy, canBeSeenBy, collectMissingTypes, computeUniqueKey, constantPoolDeclaringClass, constantPoolName, genericSignature, getAccessFlags, getAnnotations, getAnnotationTagBits, getDefaultValue, getParameterAnnotations, getTypeVariable, hasSubstitutedParameters, hasSubstitutedReturnType, isAbstract, isBridge, isConstructor, isDefault, isDefaultAbstract, isDeprecated, isFinal, isImplementing, isMain, isNative, isOverriding, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isSynthetic, isUsed, isVarargs, isViewedAsDeprecated, kind, original, readableName, setAnnotations, setAnnotations, setDefaultValue, setParameterAnnotations, shortReadableName, signature, signature, sourceEnd, sourceMethod, sourceStart, tiebreakMethod, toString, typeVariables
 
Methods inherited from class org.eclipse.jdt.internal.compiler.lookup.Binding
computeUniqueKey, initializeDeprecatedAnnotationTagBits, isValidBinding, problemId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

targetReadField

public FieldBinding targetReadField

targetWriteField

public FieldBinding targetWriteField

targetMethod

public MethodBinding targetMethod

targetEnumType

public TypeBinding targetEnumType

purpose

public int purpose

FieldReadAccess

public static final int FieldReadAccess
See Also:
Constant Field Values

FieldWriteAccess

public static final int FieldWriteAccess
See Also:
Constant Field Values

MethodAccess

public static final int MethodAccess
See Also:
Constant Field Values

ConstructorAccess

public static final int ConstructorAccess
See Also:
Constant Field Values

SuperMethodAccess

public static final int SuperMethodAccess
See Also:
Constant Field Values

BridgeMethod

public static final int BridgeMethod
See Also:
Constant Field Values

EnumValues

public static final int EnumValues
See Also:
Constant Field Values

EnumValueOf

public static final int EnumValueOf
See Also:
Constant Field Values

SwitchTable

public static final int SwitchTable
See Also:
Constant Field Values

sourceStart

public int sourceStart

index

public int index
Constructor Detail

SyntheticMethodBinding

public SyntheticMethodBinding(FieldBinding targetField,
                              boolean isReadAccess,
                              ReferenceBinding declaringClass)

SyntheticMethodBinding

public SyntheticMethodBinding(FieldBinding targetField,
                              ReferenceBinding declaringClass,
                              TypeBinding enumBinding,
                              char[] selector)

SyntheticMethodBinding

public SyntheticMethodBinding(MethodBinding targetMethod,
                              boolean isSuperAccess,
                              ReferenceBinding receiverType)

SyntheticMethodBinding

public SyntheticMethodBinding(MethodBinding overridenMethodToBridge,
                              MethodBinding targetMethod,
                              SourceTypeBinding declaringClass)
Construct a bridge method


SyntheticMethodBinding

public SyntheticMethodBinding(SourceTypeBinding declaringEnum,
                              char[] selector)
Construct enum special methods: values or valueOf methods

Method Detail

initializeConstructorAccessor

public void initializeConstructorAccessor(MethodBinding accessedConstructor)
An constructor accessor is a constructor with an extra argument (declaringClass), in case of collision with an existing constructor, then add again an extra argument (declaringClass again).


initializeMethodAccessor

public void initializeMethodAccessor(MethodBinding accessedMethod,
                                     boolean isSuperAccess,
                                     ReferenceBinding receiverType)
An method accessor is a method with an access$N selector, where N is incremented in case of collisions.