T
- the concrete type declaration supported by the compilation unitpublic abstract class CompilationUnit<T extends TypeDeclaration> extends Object
Constructor and Description |
---|
CompilationUnit(String packageName,
String name)
Create a new instance with the package to use and the name of the type.
|
Modifier and Type | Method and Description |
---|---|
T |
createTypeDeclaration(String name) |
protected abstract T |
doCreateTypeDeclaration(String name) |
String |
getName()
Return the name of the source file.
|
String |
getPackageName()
Return the package name in which the file should reside.
|
List<T> |
getTypeDeclarations() |
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.