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