summaryrefslogtreecommitdiff
path: root/src/runtime/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/java/org')
-rw-r--r--src/runtime/java/org/grammaticalframework/pgf/Expr.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/java/org/grammaticalframework/pgf/Expr.java b/src/runtime/java/org/grammaticalframework/pgf/Expr.java
index 46ea88b42..0b52e02ef 100644
--- a/src/runtime/java/org/grammaticalframework/pgf/Expr.java
+++ b/src/runtime/java/org/grammaticalframework/pgf/Expr.java
@@ -93,6 +93,11 @@ public class Expr implements Serializable {
* a meta variable, then it will return the variable's id.
* If this is not a meta variable then the result is -1. */
public native int unMeta();
+
+ /** If the method is called on an expression which is
+ * a string literal, then it will return the string value.
+ * If this is not a string literal then the result is null. */
+ public native String unStr();
/** Returns the expression as a string in the GF syntax */
public String toString() {