Package com.microsoft.z3
Class FuncDecl<R extends Sort>
- java.lang.Object
-
- com.microsoft.z3.Z3Object
-
- com.microsoft.z3.AST
-
- com.microsoft.z3.FuncDecl<R>
-
- All Implemented Interfaces:
Comparable<AST>
public class FuncDecl<R extends Sort> extends AST
Function declarations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FuncDecl.Parameter
Function declarations can have Parameters associated with them.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expr<R>
apply(Expr<?>... args)
Create expression that applies function to arguments.boolean
equals(Object o)
Object comparison.int
getArity()
The arity of the function declarationZ3_decl_kind
getDeclKind()
The kind of the function declaration.Sort[]
getDomain()
The domain of the function declarationint
getDomainSize()
The size of the domain of the function declarationint
getId()
Returns a unique identifier for the function declaration.Symbol
getName()
The name of the function declarationint
getNumParameters()
The number of parameters of the function declarationFuncDecl.Parameter[]
getParameters()
The parameters of the function declarationR
getRange()
The range of the function declarationString
toString()
A string representation of the AST.FuncDecl<R>
translate(Context ctx)
Translates (copies) the function declaration to the Contextctx
.-
Methods inherited from class com.microsoft.z3.AST
compareTo, getASTKind, getSExpr, hashCode, isApp, isExpr, isFuncDecl, isQuantifier, isSort, isVar
-
Methods inherited from class com.microsoft.z3.Z3Object
arrayLength, arrayToNative
-
-
-
-
Method Detail
-
equals
public boolean equals(Object o)
Object comparison.
-
toString
public String toString()
Description copied from class:AST
A string representation of the AST.
-
getId
public int getId()
Returns a unique identifier for the function declaration.
-
translate
public FuncDecl<R> translate(Context ctx)
Translates (copies) the function declaration to the Contextctx
.- Overrides:
translate
in classAST
- 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:
getArity()
-
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
-
-