EOS 2  1.1.0
Einfache Objektbasierte Sprache
LangClass.java
gehe zur Dokumentation dieser Datei
1 package de.lathanda.eos.config;
2 
3 import java.util.LinkedList;
4 import java.util.TreeMap;
5 
6 import de.lathanda.eos.baseparser.SystemType;
7 
8 public class LangClass {
9  public final String id;
10  public LangClass(String id) {
11  this.id = id;
12  }
13  public String pid;
14  public String[] scan;
15  public String label;
16  public String tooltip;
17  public String description;
18  public String javaclass;
19  public SystemType type;
20  public TreeMap<String, LangMethod> methods = new TreeMap<>();
21  public TreeMap<String, LangProperty> properties = new TreeMap<>();
22  public LinkedList<String> examples = new LinkedList<>();
23  public boolean show;
24  public LangProperty getOrCreateProperty(String id) {
25  if (properties.containsKey(id)) {
26  return properties.get(id);
27  } else {
28  LangProperty lp = new LangProperty(id);
29  properties.put(id, lp);
30  return lp;
31  }
32  }
33  public LangMethod getOrCreateMethod(String attribute) {
34  if (methods.containsKey(id)) {
35  return methods.get(id);
36  } else {
37  LangMethod lm = new LangMethod(id);
38  methods.put(id, lm);
39  return lm;
40  }
41  }
42 }
LangProperty getOrCreateProperty(String id)
Definition: LangClass.java:24
TreeMap< String, LangProperty > properties
Definition: LangClass.java:21
TreeMap< String, LangMethod > methods
Definition: LangClass.java:20
LangMethod getOrCreateMethod(String attribute)
Definition: LangClass.java:33
Impressum