public static enum AuxiliaryType.MethodAccessorFactory.Illegal extends Enum<AuxiliaryType.MethodAccessorFactory.Illegal> implements AuxiliaryType.MethodAccessorFactory
AuxiliaryType.MethodAccessorFactory.Illegal
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
MethodDescription.InDefinedShape |
registerAccessorFor(Implementation.SpecialMethodInvocation specialMethodInvocation)
Registers an accessor method for a
Implementation.SpecialMethodInvocation which cannot itself be
triggered invoked directly from outside a type. |
MethodDescription.InDefinedShape |
registerGetterFor(FieldDescription fieldDescription)
Registers a getter for the given
FieldDescription which might
itself not be accessible from outside the class. |
MethodDescription.InDefinedShape |
registerSetterFor(FieldDescription fieldDescription)
Registers a setter for the given
FieldDescription which might
itself not be accessible from outside the class. |
String |
toString() |
static AuxiliaryType.MethodAccessorFactory.Illegal |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AuxiliaryType.MethodAccessorFactory.Illegal[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuxiliaryType.MethodAccessorFactory.Illegal INSTANCE
public static AuxiliaryType.MethodAccessorFactory.Illegal[] values()
for (AuxiliaryType.MethodAccessorFactory.Illegal c : AuxiliaryType.MethodAccessorFactory.Illegal.values()) System.out.println(c);
public static AuxiliaryType.MethodAccessorFactory.Illegal valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic MethodDescription.InDefinedShape registerAccessorFor(Implementation.SpecialMethodInvocation specialMethodInvocation)
AuxiliaryType.MethodAccessorFactory
Implementation.SpecialMethodInvocation
which cannot itself be
triggered invoked directly from outside a type. The method is registered on the instrumented type
with package-private visibility, similarly to a Java compiler's accessor methods.registerAccessorFor
in interface AuxiliaryType.MethodAccessorFactory
specialMethodInvocation
- The special method invocation.public MethodDescription.InDefinedShape registerGetterFor(FieldDescription fieldDescription)
AuxiliaryType.MethodAccessorFactory
FieldDescription
which might
itself not be accessible from outside the class. The returned getter method defines the field type as
its return type, does not take any arguments and is of package-private visibility, similarly to the Java
compiler's accessor methods. If the field is static
, this accessor method is also static
.registerGetterFor
in interface AuxiliaryType.MethodAccessorFactory
fieldDescription
- The field which is to be accessed.public MethodDescription.InDefinedShape registerSetterFor(FieldDescription fieldDescription)
AuxiliaryType.MethodAccessorFactory
FieldDescription
which might
itself not be accessible from outside the class. The returned setter method defines the field type as
its only argument type, returns void
and is of package-private visibility, similarly to the Java
compiler's accessor methods. If the field is static
, this accessor method is also static
.registerSetterFor
in interface AuxiliaryType.MethodAccessorFactory
fieldDescription
- The field which is to be accessed.public String toString()
toString
in class Enum<AuxiliaryType.MethodAccessorFactory.Illegal>
Copyright © 2014–2016. All rights reserved.