public final class ClassBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
FutureType |
endClass() |
ClassBuilder |
field(Protection protection,
Type type,
String name) |
ConstructorDeclarationBuilder |
startConstructor(Protection protection) |
MethodDeclarationBuilder |
startMethod(Protection protection,
Type returnType,
String methodName)
.startMethod(protection, return, name){statements}.endMethod()
|
MethodDeclarationBuilder |
startStaticMethod(Protection protection,
Type returnType,
String methodName)
.startStaticMethod(protection, return, name){statements}.endMethod()
|
ClassBuilder |
staticField(Protection protection,
Type type,
String name) |
public ClassBuilder field(Protection protection, Type type, String name)
protection - public/package/protected/privatetype - name - public ClassBuilder staticField(Protection protection, Type type, String name)
protection - public/package/protected/privatetype - name - public MethodDeclarationBuilder startStaticMethod(Protection protection, Type returnType, String methodName)
protection - public/package/protected/privatereturnType - methodName - public MethodDeclarationBuilder startMethod(Protection protection, Type returnType, String methodName)
protection - public/package/protected/privatereturnType - methodName - public FutureType endClass()
public ConstructorDeclarationBuilder startConstructor(Protection protection)
Copyright © 2014. All Rights Reserved.