public interface JavaUnit
JavaUnit represents a Java compilation unit.
The source range for this type is ordinarily the entire source file.| Modifier and Type | Method and Description |
|---|---|
<T extends JavaType<?>> |
getGoverningType()
A type in the source file governs the declaration environment such as 'package' and 'import' information.
|
List<JavaType<?>> |
getTopLevelTypes() |
String |
toUnformattedString()
Return the generated code without any formatting.
|
<T extends JavaType<?>> T getGoverningType()
getTopLevelTypes()String toUnformattedString()
Copyright © 2019 JBoss by Red Hat. All rights reserved.