package bluej.stride.framedjava.convert;
import java.util.ArrayList;
import java.util.List;
import bluej.parser.lexer.LocatableToken;
import bluej.stride.framedjava.ast.ParamFragment;
import threadchecker.OnThread;
import threadchecker.Tag;
| A class to record the details of a method/constructor currently being parsed.
|
class MethodBuilder
{
final String type;
final String name;
final List<Modifier> modifiers = new ArrayList<>();
final List<ParamFragment> parameters = new ArrayList<>();
final List<String> throwsTypes = new ArrayList<>();
final String comment;
String constructorCall;
List<Expression> constructorArgs;
boolean hasBody = false;
MethodBuilder(String type, String name, List<Modifier> modifiers, String comment)
{
this.type = type;
this.name = name;
this.modifiers.addAll(modifiers);
this.comment = comment;
}
}
. - MethodBuilder
45 neLoCode
+ 1 LoComm