Record Class Value.Lambda
java.lang.Object
java.lang.Record
org.geysermc.conduit.Value.Lambda
- Record Components:
name- the functional interface methoddescriptor- the descriptor of the call siteimplOwner- the class declaring the implementation, or null if unknownimplMethod- the implementation method,<init>for a constructor referenceimplDescriptor- the implementation method's descriptorimplStatic- whether the implementation is staticcaptures- the values captured at the call site
- All Implemented Interfaces:
Value
- Enclosing interface:
Value
-
Nested Class Summary
Nested classes/interfaces inherited from interface Value
Value.Constructed, Value.Field, Value.InstanceCall, Value.Lambda, Value.Literal, Value.Multiple, Value.StaticCall, Value.Uninitialized, Value.Unknown -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaptures()Returns the value of thecapturesrecord component.Returns the value of thedescriptorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theimplDescriptorrecord component.Returns the value of theimplMethodrecord component.Returns the value of theimplOwnerrecord component.booleanReturns the value of theimplStaticrecord component.name()Returns the value of thenamerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Lambda
public Lambda(String name, String descriptor, String implOwner, String implMethod, String implDescriptor, boolean implStatic, List<Value> captures) Creates an instance of aLambdarecord class.- Parameters:
name- the value for thenamerecord componentdescriptor- the value for thedescriptorrecord componentimplOwner- the value for theimplOwnerrecord componentimplMethod- the value for theimplMethodrecord componentimplDescriptor- the value for theimplDescriptorrecord componentimplStatic- the value for theimplStaticrecord componentcaptures- the value for thecapturesrecord 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. -
name
-
descriptor
Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-
implOwner
-
implMethod
Returns the value of theimplMethodrecord component.- Returns:
- the value of the
implMethodrecord component
-
implDescriptor
Returns the value of theimplDescriptorrecord component.- Returns:
- the value of the
implDescriptorrecord component
-
implStatic
public boolean implStatic()Returns the value of theimplStaticrecord component.- Returns:
- the value of the
implStaticrecord component
-
captures
-