summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorahaase2008-02-20 17:21:12 (EST)
committerahaase2008-02-20 17:21:12 (EST)
commit3e19503cf7838d23ed6fa4f6cf506a86592a34d1 (patch)
treec3bb06005c5502c0d71a98296f26543ed7bd2658
parentabbc2b46ebf98e5b6da9ca2975034e38aefb1bb8 (diff)
downloadorg.eclipse.xpand-3e19503cf7838d23ed6fa4f6cf506a86592a34d1.zip
org.eclipse.xpand-3e19503cf7838d23ed6fa4f6cf506a86592a34d1.tar.gz
org.eclipse.xpand-3e19503cf7838d23ed6fa4f6cf506a86592a34d1.tar.bz2
StringType can now be created reflectively, yielding an empty string
-rw-r--r--plugins/org.eclipse.xtend.backend/src/org/eclipse/xtend/backend/types/builtin/StringType.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/org.eclipse.xtend.backend/src/org/eclipse/xtend/backend/types/builtin/StringType.java b/plugins/org.eclipse.xtend.backend/src/org/eclipse/xtend/backend/types/builtin/StringType.java
index 55911a5..c2469d1 100644
--- a/plugins/org.eclipse.xtend.backend/src/org/eclipse/xtend/backend/types/builtin/StringType.java
+++ b/plugins/org.eclipse.xtend.backend/src/org/eclipse/xtend/backend/types/builtin/StringType.java
@@ -38,4 +38,9 @@ public final class StringType extends AbstractType {
public boolean isAssignableFrom (BackendType other) {
return other == this || other == VoidType.INSTANCE;
}
+
+ @Override
+ public Object create () {
+ return "";
+ }
}