1 package de.lathanda.eos.baseparser;
3 import java.util.ArrayList;
5 import de.lathanda.eos.vm.Command;
6 import de.lathanda.eos.vm.DebugPoint;
16 private final String methodname;
22 this.methodname = methodname;
23 this.arguments = arguments;
36 public void compile(ArrayList<Command> ops,
boolean autowindow)
throws Exception {
37 if (methodType ==
null) {
40 arguments.
compile(ops, autowindow);
42 methodType.
compile(ops, target, autowindow);
51 if (methodType !=
null) {
59 if (methodType !=
null) {
83 if (tartype ==
null) {
89 if (methodType ==
null) {
93 }
else if (methodType !=
null) {
103 if (target !=
null) {
104 return target +
"." + methodname + arguments;
106 return methodname + arguments;
112 if (target !=
null) {
void resolveNamesAndTypes(Expression with, Environment env)
void compile(ArrayList< Command > ops, boolean autoWindow)
MethodType getFunctionSignature(String name, int args)
void addError(Marker marker, String errorId, Object... data)
String getLabelLeft(Expression e)
Invoke(Expression target, String methodname, Arguments arguments)
void resolveNamesAndTypes(Expression with, Environment env)
void compile(ArrayList< Command > ops, boolean autowindow)
final String createText(String id, Object... args)
abstract void resolveNamesAndTypes(Expression with, Environment env)
static SystemFunctionType getSystemFunction(String name, Type[] types)
MethodType getMethod(String name, Type[] parameters)
boolean checkType(Type[] args)
void compile(ArrayList< Command > ops, Expression target, boolean autowindow)