JavaTXCompilerInJavaTX/javatx-src/main/java/de/dhbwstuttgart/syntaxtree/Constructor.java

37 lines
1.3 KiB
Java
Raw Normal View History

2024-02-02 12:06:37 +00:00
package de.dhbwstuttgart.syntaxtree;
2024-03-16 16:16:23 +00:00
import de.dhbwstuttgart.parser.NullToken;
2024-02-02 12:06:37 +00:00
import de.dhbwstuttgart.syntaxtree.statement.Statement;
2024-03-16 16:16:23 +00:00
import de.dhbwstuttgart.syntaxtree.statement.Super;
2024-02-02 12:06:37 +00:00
import de.dhbwstuttgart.syntaxtree.statement.SuperCall;
import de.dhbwstuttgart.syntaxtree.type.RefType;
import de.dhbwstuttgart.syntaxtree.type.RefTypeOrTPHOrWildcardOrGeneric;
2024-03-16 16:16:23 +00:00
import de.dhbwstuttgart.syntaxtree.type.Void;
2024-02-02 12:06:37 +00:00
import org.antlr.v4.runtime.Token;
import de.dhbwstuttgart.syntaxtree.statement.Block;
2024-03-16 16:16:23 +00:00
import java.sql.Ref;
import java.util.ArrayList;
2024-02-02 12:06:37 +00:00
import java.util.List;
2024-04-02 21:45:56 +00:00
import de.dhbwstuttgart.syntaxtree.Method;
import de.dhbwstuttgart.syntaxtree.GenericDeclarationList;
import de.dhbwstuttgart.syntaxtree.ParameterList;
import de.dhbwstuttgart.syntaxtree.ASTVisitor;
import java.lang.String;
import java.lang.Integer;
2024-02-02 12:06:37 +00:00
public class Constructor extends Method {
// TODO: Constructor braucht ein super-Statement
2024-03-16 16:16:23 +00:00
public Constructor(int modifier, String name, RefTypeOrTPHOrWildcardOrGeneric returnType, ParameterList parameterList, Block codeInsideConstructor, GenericDeclarationList gtvDeclarations, Token offset) {
super(modifier, name, returnType, parameterList, codeInsideConstructor, gtvDeclarations, offset);
2024-02-02 12:06:37 +00:00
}
@Override
public void accept(ASTVisitor visitor) {
visitor.visit(this);
}
}