50 lines
1.2 KiB
Java
Raw Normal View History

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;
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;
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
{
public MethodCall(Receiver receiver, String methodName, ArgumentList argumentList, Token offset){
super(TypePlaceholder.fresh(offset),offset);
this.set_ArgumentList(argumentList);
}
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;
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;
}
}