Record Class Value.Lambda

java.lang.Object
java.lang.Record
org.geysermc.conduit.Value.Lambda
Record Components:
name - the functional interface method
descriptor - the descriptor of the call site
implOwner - the class declaring the implementation, or null if unknown
implMethod - the implementation method, <init> for a constructor reference
implDescriptor - the implementation method's descriptor
implStatic - whether the implementation is static
captures - the values captured at the call site
All Implemented Interfaces:
Value
Enclosing interface:
Value

public static record Value.Lambda(String name, String descriptor, String implOwner, String implMethod, String implDescriptor, boolean implStatic, List<Value> captures) extends Record implements Value
A lambda or method reference, with the method it was compiled to and what it captured.
  • Constructor Details

    • Lambda

      public Lambda(String name, String descriptor, String implOwner, String implMethod, String implDescriptor, boolean implStatic, List<Value> captures)
      Creates an instance of a Lambda record class.
      Parameters:
      name - the value for the name record component
      descriptor - the value for the descriptor record component
      implOwner - the value for the implOwner record component
      implMethod - the value for the implMethod record component
      implDescriptor - the value for the implDescriptor record component
      implStatic - the value for the implStatic record component
      captures - the value for the captures record component
  • Method Details

    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • descriptor

      public String descriptor()
      Returns the value of the descriptor record component.
      Returns:
      the value of the descriptor record component
    • implOwner

      public String implOwner()
      Returns the value of the implOwner record component.
      Returns:
      the value of the implOwner record component
    • implMethod

      public String implMethod()
      Returns the value of the implMethod record component.
      Returns:
      the value of the implMethod record component
    • implDescriptor

      public String implDescriptor()
      Returns the value of the implDescriptor record component.
      Returns:
      the value of the implDescriptor record component
    • implStatic

      public boolean implStatic()
      Returns the value of the implStatic record component.
      Returns:
      the value of the implStatic record component
    • captures

      public List<Value> captures()
      Returns the value of the captures record component.
      Returns:
      the value of the captures record component