2014-09-02 10:33:54 +02:00
|
|
|
package de.dhbwstuttgart.syntaxtree.statement;
|
2013-10-18 13:33:46 +02:00
|
|
|
import java.util.Hashtable;
|
2014-02-09 16:07:31 +01:00
|
|
|
|
2017-02-17 16:34:40 +01:00
|
|
|
import org.antlr.v4.runtime.Token;
|
2016-10-07 14:12:18 +02:00
|
|
|
import org.apache.bcel.Const;
|
2016-07-21 16:36:33 +02:00
|
|
|
import org.apache.bcel.Constants;
|
|
|
|
import org.apache.bcel.generic.ClassGen;
|
|
|
|
import org.apache.bcel.generic.InstructionFactory;
|
|
|
|
import org.apache.bcel.generic.InstructionHandle;
|
|
|
|
import org.apache.bcel.generic.InstructionList;
|
2015-06-16 14:58:27 +02:00
|
|
|
|
2014-09-02 10:33:54 +02:00
|
|
|
import de.dhbwstuttgart.syntaxtree.Method;
|
2014-09-04 16:35:44 +02:00
|
|
|
import de.dhbwstuttgart.syntaxtree.SyntaxTreeNode;
|
2014-09-02 10:33:54 +02:00
|
|
|
import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
|
2013-10-18 13:33:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2017-03-01 15:34:57 +01:00
|
|
|
public class MethodCall extends ExprStmt
|
2013-10-18 13:33:46 +02:00
|
|
|
{
|
2017-02-17 16:34:40 +01:00
|
|
|
public MethodCall(Receiver receiver, String methodName, ArgumentList argumentList, Token offset){
|
|
|
|
super(TypePlaceholder.fresh(offset),offset);
|
2015-02-25 16:34:29 +01:00
|
|
|
this.set_ArgumentList(argumentList);
|
|
|
|
}
|
2017-02-17 16:34:40 +01:00
|
|
|
|
2013-10-18 13:33:46 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Diese Variable speichert die Expression, welche die Klasse von welcher die Methode aufgerufen wird darstellt.
|
|
|
|
*/
|
|
|
|
private Receiver receiver;
|
2016-12-16 00:00:37 +01:00
|
|
|
private ArgumentList arglist;
|
2014-02-22 04:58:49 +01:00
|
|
|
|
2013-10-18 13:33:46 +02:00
|
|
|
|
|
|
|
public void set_ArgumentList(ArgumentList al)
|
|
|
|
{
|
|
|
|
this.arglist = al;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ArgumentList getArgumentList()
|
|
|
|
{
|
|
|
|
return this.arglist;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Receiver get_Receiver()
|
|
|
|
{
|
|
|
|
return receiver;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|