Record Class JExpressionInformation.Instantiation.Simple

java.lang.Object
java.lang.Record
honeyroasted.jype.system.JExpressionInformation.Instantiation.Simple
All Implemented Interfaces:
honeyroasted.almonds.SimpleName, JExpressionInformation, JExpressionInformation.Instantiation, JExpressionInformation.Invocation
Enclosing interface:
JExpressionInformation.Instantiation

public static record JExpressionInformation.Instantiation.Simple(JClassReference declaring, JMethodReference declaringMethod, JClassReference type, List<JExpressionInformation> parameters, List<JArgumentType> explicitTypeArguments) extends Record implements JExpressionInformation.Instantiation
  • Constructor Details

    • Simple

      public Simple(JClassReference declaring, JMethodReference declaringMethod, JClassReference type, List<JExpressionInformation> parameters, List<JArgumentType> explicitTypeArguments)
      Creates an instance of a Simple record class.
      Parameters:
      declaring - the value for the declaring record component
      declaringMethod - the value for the declaringMethod record component
      type - the value for the type record component
      parameters - the value for the parameters record component
      explicitTypeArguments - the value for the explicitTypeArguments record component
  • Method Details

    • simpleName

      public String simpleName()
      Specified by:
      simpleName in interface honeyroasted.almonds.SimpleName
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • declaring

      public JClassReference declaring()
      Returns the value of the declaring record component.
      Specified by:
      declaring in interface JExpressionInformation.Invocation
      Returns:
      the value of the declaring record component
    • declaringMethod

      public JMethodReference declaringMethod()
      Returns the value of the declaringMethod record component.
      Specified by:
      declaringMethod in interface JExpressionInformation.Invocation
      Returns:
      the value of the declaringMethod record component
    • type

      public JClassReference type()
      Returns the value of the type record component.
      Specified by:
      type in interface JExpressionInformation.Instantiation
      Returns:
      the value of the type record component
    • parameters

      public List<JExpressionInformation> parameters()
      Returns the value of the parameters record component.
      Specified by:
      parameters in interface JExpressionInformation.Invocation
      Returns:
      the value of the parameters record component
    • explicitTypeArguments

      public List<JArgumentType> explicitTypeArguments()
      Returns the value of the explicitTypeArguments record component.
      Specified by:
      explicitTypeArguments in interface JExpressionInformation.Invocation
      Returns:
      the value of the explicitTypeArguments record component