APIdia Launch Partner
Top Description Inners Fields Constructors Methods
jdk.dynalink.beans

pack-priv Class ApplicableOverloadedMethods

extends Object
Class Inheritance
Imports
java.lang.invoke.MethodType, java.util.LinkedList, .List, jdk.dynalink.linker.support.TypeUtilities

Represents overloaded methods applicable to a specific call site signature.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv abstract static class

Field Summary

Modifier and TypeField and Description
pack-priv static final ApplicableOverloadedMethods.ApplicabilityTest
APPLICABLE_BY_METHOD_INVOCATION_CONVERSION

Implements the applicability-by-method-invocation-conversion test from JLS 15.12.2.3.

pack-priv static final ApplicableOverloadedMethods.ApplicabilityTest
APPLICABLE_BY_SUBTYPING

Implements the applicability-by-subtyping test from JLS 15.12.2.2.

pack-priv static final ApplicableOverloadedMethods.ApplicabilityTest
APPLICABLE_BY_VARIABLE_ARITY

Implements the applicability-by-variable-arity test from JLS 15.12.2.4.

private final List<SingleDynamicMethod>
private final boolean

Constructor Summary

AccessConstructor and Description
pack-priv
ApplicableOverloadedMethods(final List<SingleDynamicMethod>
a list of all overloaded methods with the same name for a class.
methods
,
final MethodType
the type of the call site
callSiteType
,
final ApplicableOverloadedMethods.ApplicabilityTest test)

Creates a new ApplicableOverloadedMethods instance

Method Summary

Modifier and TypeMethod and Description
pack-priv List<SingleDynamicMethod>

Returns:

a list of maximally specific methods.
findMaximallySpecificMethods
()

Returns a list of all methods in this objects that are maximally specific.

pack-priv List<SingleDynamicMethod>

Returns:

list of all methods.
getMethods
()

Retrieves all the methods this object holds.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

APPLICABLE_BY_METHOD_INVOCATION_CONVERSIONback to summary
pack-priv static final ApplicableOverloadedMethods.ApplicabilityTest APPLICABLE_BY_METHOD_INVOCATION_CONVERSION

Implements the applicability-by-method-invocation-conversion test from JLS 15.12.2.3.

APPLICABLE_BY_SUBTYPINGback to summary
pack-priv static final ApplicableOverloadedMethods.ApplicabilityTest APPLICABLE_BY_SUBTYPING

Implements the applicability-by-subtyping test from JLS 15.12.2.2.

APPLICABLE_BY_VARIABLE_ARITYback to summary
pack-priv static final ApplicableOverloadedMethods.ApplicabilityTest APPLICABLE_BY_VARIABLE_ARITY

Implements the applicability-by-variable-arity test from JLS 15.12.2.4.

methodsback to summary
private final List<SingleDynamicMethod> methods
varArgsback to summary
private final boolean varArgs

Constructor Detail

ApplicableOverloadedMethodsback to summary
pack-priv ApplicableOverloadedMethods(final List<SingleDynamicMethod> methods, final MethodType callSiteType, final ApplicableOverloadedMethods.ApplicabilityTest test)

Creates a new ApplicableOverloadedMethods instance

Parameters
methods:List<SingleDynamicMethod>

a list of all overloaded methods with the same name for a class.

callSiteType:MethodType

the type of the call site

test:ApplicableOverloadedMethods.ApplicabilityTest

applicability test. One of APPLICABLE_BY_SUBTYPING, APPLICABLE_BY_METHOD_INVOCATION_CONVERSION, or APPLICABLE_BY_VARIABLE_ARITY.

Method Detail

findMaximallySpecificMethodsback to summary
pack-priv List<SingleDynamicMethod> findMaximallySpecificMethods()

Returns a list of all methods in this objects that are maximally specific.

Returns:List<SingleDynamicMethod>

a list of maximally specific methods.

getMethodsback to summary
pack-priv List<SingleDynamicMethod> getMethods()

Retrieves all the methods this object holds.

Returns:List<SingleDynamicMethod>

list of all methods.

jdk.dynalink.beans back to summary

pack-priv abstract Class ApplicableOverloadedMethods.ApplicabilityTest

extends Object
Class Inheritance
  • java.lang.Object
  • jdk.dynalink.beans.ApplicableOverloadedMethods.ApplicabilityTest

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ApplicabilityTestback to summary
pack-priv ApplicabilityTest()

Method Detail

isApplicableback to summary
pack-priv abstract boolean isApplicable(MethodType callSiteType, SingleDynamicMethod method)