Search in sources :

Example 16 with ParamDecl

use of abs.frontend.ast.ParamDecl in project abstools by abstools.

the class AbsASTBuilderUtil method createMethodSig.

public static final MethodSig createMethodSig(String methodName, Access returnType, ParamDecl... decls) {
    abs.frontend.ast.List<ParamDecl> dl = new abs.frontend.ast.List<>();
    for (ParamDecl d : decls) {
        dl.add(d);
    }
    MethodSig method = new MethodSig(methodName, new abs.frontend.ast.List<>(), returnType, dl);
    return method;
}
Also used : MethodSig(abs.frontend.ast.MethodSig) ParamDecl(abs.frontend.ast.ParamDecl) List(abs.frontend.ast.List)

Aggregations

ParamDecl (abs.frontend.ast.ParamDecl)16 FieldDecl (abs.frontend.ast.FieldDecl)6 MethodImpl (abs.frontend.ast.MethodImpl)4 MethodSig (abs.frontend.ast.MethodSig)4 VarUse (abs.frontend.ast.VarUse)4 AbsASTBuilderUtil.createMethodSig (abs.backend.tests.AbsASTBuilderUtil.createMethodSig)3 Annotation (abs.frontend.ast.Annotation)3 AddMethodModifier (abs.frontend.ast.AddMethodModifier)2 Block (abs.frontend.ast.Block)2 ClassDecl (abs.frontend.ast.ClassDecl)2 FieldUse (abs.frontend.ast.FieldUse)2 PureExp (abs.frontend.ast.PureExp)2 ReturnStmt (abs.frontend.ast.ReturnStmt)2 ArrayList (java.util.ArrayList)2 ABSDynamicClass (abs.backend.java.lib.runtime.ABSDynamicClass)1 ABSField (abs.backend.java.lib.runtime.ABSField)1 ABSValue (abs.backend.java.lib.types.ABSValue)1 DeclNamePredicate (abs.backend.tests.AbsASTBuilderUtil.DeclNamePredicate)1 AbsASTBuilderUtil.createMethodImpl (abs.backend.tests.AbsASTBuilderUtil.createMethodImpl)1 AbsASTBuilderUtil.getCall (abs.backend.tests.AbsASTBuilderUtil.getCall)1