public static enum SubclassImplementationTarget.OriginTypeResolver extends Enum<SubclassImplementationTarget.OriginTypeResolver>
Implementation.Target#getOriginType() is invoked.| Enum Constant and Description |
|---|
LEVEL_TYPE
Identifies the instrumented type as its own origin type.
|
SUPER_CLASS
Identifies the super type of an instrumented type as the origin class.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract TypeDefinition |
identify(TypeDescription typeDescription)
Identifies the origin type to a given type description.
|
String |
toString() |
static SubclassImplementationTarget.OriginTypeResolver |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SubclassImplementationTarget.OriginTypeResolver[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SubclassImplementationTarget.OriginTypeResolver SUPER_CLASS
public static final SubclassImplementationTarget.OriginTypeResolver LEVEL_TYPE
public static SubclassImplementationTarget.OriginTypeResolver[] values()
for (SubclassImplementationTarget.OriginTypeResolver c : SubclassImplementationTarget.OriginTypeResolver.values()) System.out.println(c);
public static SubclassImplementationTarget.OriginTypeResolver 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 nullprotected abstract TypeDefinition identify(TypeDescription typeDescription)
typeDescription - The type description for which an origin type should be identified.public String toString()
toString in class Enum<SubclassImplementationTarget.OriginTypeResolver>Copyright © 2014–2016. All rights reserved.