Z3
src/api/java/StringSymbol.java
Go to the documentation of this file.
00001 
00018 package com.microsoft.z3;
00019 
00020 import com.microsoft.z3.enumerations.Z3_symbol_kind;
00021 
00025 public class StringSymbol extends Symbol
00026 {
00032     public String getString()
00033     {
00034         return Native.getSymbolString(getContext().nCtx(), getNativeObject());
00035     }
00036 
00037     StringSymbol(Context ctx, long obj)
00038     {
00039         super(ctx, obj);
00040     }
00041 
00042     StringSymbol(Context ctx, String s)
00043     {
00044         super(ctx, Native.mkStringSymbol(ctx.nCtx(), s));
00045     }
00046 
00047     void checkNativeObject(long obj)
00048     {
00049         if (Native.getSymbolKind(getContext().nCtx(), obj) != Z3_symbol_kind.Z3_STRING_SYMBOL
00050                 .toInt())
00051             throw new Z3Exception("Symbol is not of String kind");
00052 
00053         super.checkNativeObject(obj);
00054     }
00055 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines