1 package de.lathanda.eos.baseparser;
3 import java.util.LinkedList;
4 import java.util.TreeMap;
6 import de.lathanda.eos.vm.MType;
17 protected final String
id;
19 protected final TreeMap<String, LinkedList<MethodType> >
methods =
new TreeMap<>();
20 protected final LinkedList<AutoCompleteEntry>
autocompletes =
new LinkedList<>();
33 protected Type(String
id) {
65 }
else if (right !=
null) {
121 LinkedList<MethodType> list;
123 if (
methods.containsKey(key)) {
126 list =
new LinkedList<>();
141 LinkedList<MethodType> list = getMethods(name, parameters.length);
143 if(mt.checkType(parameters)) {
149 private LinkedList<MethodType> getMethods(String name,
int parameterCount) {
152 LinkedList<MethodType> list =
new LinkedList<>();
153 if (
methods.containsKey(key)) {
157 list.addAll(
superType.getMethods(name, parameterCount));
174 LinkedList<Type> typelist =
new LinkedList<Type>();
176 while (act !=
null) {
185 LinkedList<AutoCompleteInformation> completes =
new LinkedList<>();
199 return this.
id.compareTo(b.
id);
static String createPreselectionSignature(String name, int args)
abstract MType getMType()
static SystemType getString()
void registerMethod(MethodType mt)
static SystemType INTEGER
static SystemType getVoid()
static SystemType getBoolean()
final LinkedList< AutoCompleteEntry > autocompletes
abstract MethodType getAssignProperty(String name)
final TreeMap< String, LinkedList< MethodType > > methods
static SystemType getAlignment()
static SystemType BOOLEAN
static SystemType getUnknown()
abstract TreeMap< String, MethodType > getAllAssignProperties()
MethodType getMethod(String name, Type[] parameters)
static SystemType getFillStyle()
static SystemType getDouble()
static SystemType LINESTYLE
boolean checkType(Type right)
LinkedList< AutoCompleteInformation > getAutoCompletes()
abstract boolean isAbstract()
Type mergeTypes(Type right)
void registerAutoCompleteEntry(AutoCompleteEntry ace)
static SystemType getInteger()
static SystemType getLineStyle()
static SystemType getColor()
static SystemType ALIGNMENT
static SystemType FILLSTYLE
static SystemType UNKNOWN
abstract MethodType getReadProperty(String name)
abstract LinkedList< PropertyViewer > getPropertyViewers(Object target)
abstract TreeMap< String, MethodType > getAllReadProperties()
LinkedList< Type > getTypeList()
void fillAutoCompletes(LinkedList< AutoCompleteInformation > list)