diff --git a/prism/src/parser/ast/ASTElement.java b/prism/src/parser/ast/ASTElement.java index 7303efb6..50b488e8 100644 --- a/prism/src/parser/ast/ASTElement.java +++ b/prism/src/parser/ast/ASTElement.java @@ -127,6 +127,14 @@ public abstract class ASTElement return type; } + /** + * Get the type for this element, as a string. + */ + public String getTypeString() + { + return Expression.getTypeString(getType()); + } + public boolean hasPosition() { return beginLine != -1;