Record Class FunctionDeclarationImpl<F extends Formula,T>

java.lang.Object
java.lang.Record
org.sosy_lab.java_smt.basicimpl.FunctionDeclarationImpl<F,T>
All Implemented Interfaces:
FunctionDeclaration<F>

@Immutable(containerOf="T") public record FunctionDeclarationImpl<F extends Formula,T>(FunctionDeclarationKind getKind, String getName, FormulaType<F extends Formula> getType, ImmutableList<FormulaType<?>> getArgumentTypes, T getSolverDeclaration) extends Record implements FunctionDeclaration<F>
Declaration of a function.
  • Constructor Details

    • FunctionDeclarationImpl

      public FunctionDeclarationImpl(FunctionDeclarationKind getKind, String getName, FormulaType<F> getType, ImmutableList<FormulaType<?>> getArgumentTypes, T getSolverDeclaration)
      Creates an instance of a FunctionDeclarationImpl record class.
      Parameters:
      getKind - the value for the getKind record component
      getName - the value for the getName record component
      getType - the value for the getType record component
      getArgumentTypes - the value for the getArgumentTypes record component
      getSolverDeclaration - the value for the getSolverDeclaration record component
  • Method Details

    • of

      public static <F extends Formula, T> FunctionDeclarationImpl<F,T> of(String name, FunctionDeclarationKind kind, List<FormulaType<?>> pArgumentTypes, FormulaType<F> pReturnType, T pDeclaration)
    • 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.
    • getKind

      public FunctionDeclarationKind getKind()
      Returns the value of the getKind record component.
      Specified by:
      getKind in interface FunctionDeclaration<F extends Formula>
      Returns:
      the value of the getKind record component
    • getName

      public String getName()
      Returns the value of the getName record component.
      Specified by:
      getName in interface FunctionDeclaration<F extends Formula>
      Returns:
      the value of the getName record component
    • getType

      public FormulaType<F> getType()
      Returns the value of the getType record component.
      Specified by:
      getType in interface FunctionDeclaration<F extends Formula>
      Returns:
      the value of the getType record component
    • getArgumentTypes

      public ImmutableList<FormulaType<?>> getArgumentTypes()
      Returns the value of the getArgumentTypes record component.
      Specified by:
      getArgumentTypes in interface FunctionDeclaration<F extends Formula>
      Returns:
      the value of the getArgumentTypes record component
    • getSolverDeclaration

      public T getSolverDeclaration()
      Returns the value of the getSolverDeclaration record component.
      Returns:
      the value of the getSolverDeclaration record component