added Expr.size() in the Java binding

This commit is contained in:
Krasimir Angelov
2017-09-18 21:55:10 +02:00
parent 7ae5ef0a35
commit b3d96cfa93
2 changed files with 10 additions and 0 deletions

View File

@@ -1575,6 +1575,13 @@ Java_org_grammaticalframework_pgf_Expr_hashCode(JNIEnv* env, jobject self)
return pgf_expr_hash(0, e);
}
JNIEXPORT jint JNICALL
Java_org_grammaticalframework_pgf_Expr_size(JNIEnv* env, jobject self)
{
PgfExpr e = gu_variant_from_ptr(l2p(get_ref(env, self)));
return pgf_expr_size(e);
}
JNIEXPORT jstring JNICALL
Java_org_grammaticalframework_pgf_Type_getCategory(JNIEnv* env, jobject self)
{