Class FuncDecl<R extends Sort>

All Implemented Interfaces:
Comparable<AST>

public class FuncDecl<R extends Sort> extends AST
Function declarations.
  • Method Details

    • equals

      public boolean equals(Object o)
      Object comparison.
      Overrides:
      equals in class AST
      Parameters:
      o - another AST
    • toString

      public String toString()
      Description copied from class: AST
      A string representation of the AST.
      Overrides:
      toString in class AST
    • getId

      public int getId()
      Returns a unique identifier for the function declaration.
      Overrides:
      getId in class AST
    • translate

      public FuncDecl<R> translate(Context ctx)
      Translates (copies) the function declaration to the Context ctx.
      Overrides:
      translate in class AST
      Parameters:
      ctx - A context
      Returns:
      A copy of the function declaration which is associated with ctx
      Throws:
      Z3Exception - on error
    • getArity

      public int getArity()
      The arity of the function declaration
    • getDomainSize

      public int getDomainSize()
      The size of the domain of the function declaration
      See Also:
    • getDomain

      public Sort[] getDomain()
      The domain of the function declaration
    • getRange

      public R getRange()
      The range of the function declaration
    • getDeclKind

      public Z3_decl_kind getDeclKind()
      The kind of the function declaration.
    • getName

      public Symbol getName()
      The name of the function declaration
    • getNumParameters

      public int getNumParameters()
      The number of parameters of the function declaration
    • getParameters

      public FuncDecl.Parameter[] getParameters()
      The parameters of the function declaration
    • apply

      public Expr<R> apply(Expr<?>... args)
      Create expression that applies function to arguments.