public class SrcClass extends SrcObject
Constructor and Description |
---|
SrcClass(String fullName) |
SrcClass(String pagkageDeclaration,
String className) |
Modifier and Type | Method and Description |
---|---|
SrcClass |
addConstructor(SrcMethod constructor) |
SrcClass |
addField(SrcVariableDef field) |
SrcClass |
addImport(String imp) |
SrcClass |
addInnerClass(SrcClass innerClass) |
SrcClass |
addInterface(String intf) |
SrcClass |
addMethod(SrcMethod method) |
SrcClass |
addModifier(SrcModifier modifier) |
String |
getClassName() |
String |
getFullName() |
List<String> |
getImports() |
List<String> |
getInterfaces() |
List<SrcMethod> |
getMethods() |
List<SrcModifier> |
getModifiers() |
String |
getPackageDeclaration() |
static String |
getPackageName(String fullName) |
static String |
getSimpleName(String fullName) |
SrcClass |
setPackage(String packageDeclaration) |
SrcClass |
setSuperClassName(String superClassName) |
String |
toCodeString() |
String |
toJavaString() |
void |
writeToFile(String dirPath) |
lineSeparator
public SrcClass(String fullName)
public String getClassName()
public String getPackageDeclaration()
public List<SrcModifier> getModifiers()
public SrcClass addModifier(SrcModifier modifier)
public SrcClass addField(SrcVariableDef field)
public String getFullName()
public String toCodeString()
toCodeString
in class SrcObject
public String toJavaString()
toJavaString
in class SrcObject
public void writeToFile(String dirPath)
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.