public class ASTVector extends Z3Object
| Constructor and Description |
|---|
ASTVector(Context ctx) |
ASTVector(Context ctx,
long obj) |
| Modifier and Type | Method and Description |
|---|---|
AST |
get(int i)
Retrieves the i-th object in the vector.
|
void |
push(AST a)
Add the AST
a to the back of the vector. |
void |
resize(int newSize)
Resize the vector to
newSize. |
void |
set(int i,
AST value) |
int |
size()
The size of the vector
|
ArithExpr<?>[] |
ToArithExprExprArray()
Translates the AST vector into an ArithExpr[]
|
AST[] |
ToArray()
Translates the AST vector into an AST[]
|
ArrayExpr<?,?>[] |
ToArrayExprArray()
Translates the AST vector into an ArrayExpr[]
|
BitVecExpr[] |
ToBitVecExprArray()
Translates the AST vector into an BitVecExpr[]
|
BoolExpr[] |
ToBoolExprArray()
Translates the AST vector into an BoolExpr[]
|
DatatypeExpr<?>[] |
ToDatatypeExprArray()
Translates the AST vector into an DatatypeExpr[]
|
Expr<?>[] |
ToExprArray()
Translates the AST vector into an Expr[]
|
FPExpr[] |
ToFPExprArray()
Translates the AST vector into an FPExpr[]
|
FPRMExpr[] |
ToFPRMExprArray()
Translates the AST vector into an FPRMExpr[]
|
IntExpr[] |
ToIntExprArray()
Translates the AST vector into an IntExpr[]
|
RealExpr[] |
ToRealExprArray()
Translates the AST vector into an RealExpr[]
|
String |
toString()
Retrieves a string representation of the vector.
|
ASTVector |
translate(Context ctx)
Translates all ASTs in the vector to
ctx. |
arrayLength, arrayToNativepublic ASTVector(Context ctx, long obj)
public ASTVector(Context ctx)
public int size()
public AST get(int i)
IndexOutOfBoundsException when
i is out of range.i - IndexZ3Exceptionpublic void set(int i,
AST value)
public void resize(int newSize)
newSize.newSize - The new size of the vector.public void push(AST a)
a to the back of the vector. The size is
increased by 1.a - An ASTpublic ASTVector translate(Context ctx)
ctx.ctx - A contextZ3Exceptionpublic String toString()
public AST[] ToArray()
public Expr<?>[] ToExprArray()
public BoolExpr[] ToBoolExprArray()
public BitVecExpr[] ToBitVecExprArray()
public ArithExpr<?>[] ToArithExprExprArray()
public ArrayExpr<?,?>[] ToArrayExprArray()
public DatatypeExpr<?>[] ToDatatypeExprArray()
public FPExpr[] ToFPExprArray()
public FPRMExpr[] ToFPRMExprArray()
public IntExpr[] ToIntExprArray()
public RealExpr[] ToRealExprArray()