]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/modules/SCLValue.java
Minor refactorings related to SCL constructors
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / elaboration / modules / SCLValue.java
index 2d9ed6fe1d5db38ad94ad92d6dc4e91e47b01112..08b03d04feddc900ae1994bbbe6597ab09b1f1f9 100644 (file)
@@ -35,6 +35,7 @@ public final class SCLValue implements Typed {
     private ArrayList<SCLValueProperty> properties = new ArrayList<SCLValueProperty>(2);
     public String documentation;
     public long definitionLocation = Locations.NO_LOCATION;
+    public String[] parameterNames;
     
     public SCLValue(Name name) {
         this.name = name;
@@ -144,6 +145,13 @@ public final class SCLValue implements Typed {
                                return true;
                return false;
        }
+       
+       public String isDeprecated() {
+           for(SCLValueProperty property : properties)
+            if(property instanceof DeprecatedProperty)
+                return ((DeprecatedProperty)property).description;
+        return null;
+       }
 
        public void setDocumentation(String documentation) {
                this.documentation = documentation;
@@ -152,4 +160,11 @@ public final class SCLValue implements Typed {
        public String getDocumentation() {
                return documentation;
        }
+
+    public boolean isPrivateOrDerived() {
+        for(SCLValueProperty property : properties)
+            if(property == PrivateProperty.INSTANCE || property == DerivedProperty.INSTANCE)
+                return true;
+        return false;
+    }
 }