public abstract class JavaFile extends Object
Constructor and Description |
---|
JavaFile() |
Modifier and Type | Method and Description |
---|---|
void |
addClassType(ClassType classType)
Add a ClassType to the current list of class types.
|
void |
addImportType(ImportType importType)
Add an ImportType to the current imports.
|
ClassType |
getClassType()
Get the name of this class.
|
List |
getClassTypes()
Get the names of the classes in this file.
|
String |
getEncoding()
Gets the encoding attribute of the JavaFile object
|
String |
getFilename()
Gets the filename attribute of the JavaFile object
|
ImportType[] |
getImportTypes()
Get the imported packages/files that this package has.
|
PackageType |
getPackageType()
Get the package of this class.
|
void |
setClassType(ClassType classType)
Set the name of this class.
|
void |
setEncoding(String encoding)
Sets the encoding attribute of the JavaFile object
|
void |
setFilename(String filename)
Sets the filename attribute of the JavaFile object
|
void |
setPackageType(PackageType packageType)
Set the PackageType of this class.
|
public ImportType[] getImportTypes()
public ClassType getClassType()
public List getClassTypes()
public PackageType getPackageType()
public void addClassType(ClassType classType)
public void addImportType(ImportType importType)
public void setClassType(ClassType classType)
public void setPackageType(PackageType packageType)
public String getFilename()
public void setFilename(String filename)
public String getEncoding()
public void setEncoding(String encoding)
Copyright © 2002–2013 The Apache Software Foundation. All rights reserved.