Record Class ELMethods.Candidate<T>
java.lang.Object
java.lang.Record
io.micronaut.el.runtime.ELMethods.Candidate<T>
- Type Parameters:
T- The type of the method the candidate stands for- Record Components:
value- The method this candidate stands forparameterTypes- Its parameter typesvarArgs- Whether it is of variable arityisStatic- Whether it is staticbridge- Whether it is a bridge method, which loses a tie against the method it bridges to
- Enclosing class:
ELMethods
public static record ELMethods.Candidate<T>(T value, Class<?>[] parameterTypes, boolean varArgs, boolean isStatic, boolean bridge)
extends Record
A method the selection of the section 1.6 can choose between, with what the selection needs read once.
The selection is defined by the parameter types alone, so a candidate carries whatever the caller
wants back: the reflective resolvers select a java.lang.reflect.Method, while a registry of
directly dispatched methods selects its own descriptor.
- Since:
- 1.0
- Author:
- Denis Stepanov
-
Constructor Summary
ConstructorsConstructorDescriptionA candidate for a method that is neither of variable arity, nor static, nor a bridge.Creates an instance of aCandidaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbridge()Returns the value of thebridgerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisStatic()Returns the value of theisStaticrecord component.Class<?>[]Returns the value of theparameterTypesrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.booleanvarArgs()Returns the value of thevarArgsrecord component.
-
Constructor Details
-
Candidate
-
Candidate
public Candidate(T value, Class<?>[] parameterTypes, boolean varArgs, boolean isStatic, boolean bridge) Creates an instance of aCandidaterecord class.- Parameters:
value- the value for thevaluerecord componentparameterTypes- the value for theparameterTypesrecord componentvarArgs- the value for thevarArgsrecord componentisStatic- the value for theisStaticrecord componentbridge- the value for thebridgerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
value
-
parameterTypes
Returns the value of theparameterTypesrecord component.- Returns:
- the value of the
parameterTypesrecord component
-
varArgs
-
isStatic
-
bridge
-