protected static enum Implementation.Target.AbstractBase.DefaultMethodInvocation extends Enum<Implementation.Target.AbstractBase.DefaultMethodInvocation>
Enum Constant and Description |
---|
DISABLED
Does not permit default method invocations.
|
ENABLED
Permits default method invocations, if an interface declaring a default method is possible.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Implementation.SpecialMethodInvocation |
apply(MethodGraph.Node node,
TypeDescription targetType)
Resolves a default method invocation for a given node.
|
static Implementation.Target.AbstractBase.DefaultMethodInvocation |
of(ClassFileVersion classFileVersion)
Resolves a default method invocation depending on the class file version permitting such calls.
|
static Implementation.Target.AbstractBase.DefaultMethodInvocation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Implementation.Target.AbstractBase.DefaultMethodInvocation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Implementation.Target.AbstractBase.DefaultMethodInvocation ENABLED
public static final Implementation.Target.AbstractBase.DefaultMethodInvocation DISABLED
public static Implementation.Target.AbstractBase.DefaultMethodInvocation[] values()
for (Implementation.Target.AbstractBase.DefaultMethodInvocation c : Implementation.Target.AbstractBase.DefaultMethodInvocation.values()) System.out.println(c);
public static Implementation.Target.AbstractBase.DefaultMethodInvocation 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 static Implementation.Target.AbstractBase.DefaultMethodInvocation of(ClassFileVersion classFileVersion)
classFileVersion
- The class file version to resolve for.protected abstract Implementation.SpecialMethodInvocation apply(MethodGraph.Node node, TypeDescription targetType)
node
- The node representing the default method call.targetType
- The target type defining the default method.Copyright © 2014–2024. All rights reserved.