Package org.jboss.forge.roaster.model
Interface JavaUnit
public interface JavaUnit
A
JavaUnit represents a Java compilation unit.
The source range for this type is ordinarily the entire source file.- Author:
- George Gastaldi
-
Method Summary
Modifier and TypeMethodDescription<T extends JavaType<?>>
TA type in the source file governs the declaration environment such as 'package' and 'import' information.Return the generated code without any formatting.
-
Method Details
-
getGoverningType
A type in the source file governs the declaration environment such as 'package' and 'import' information.- Returns:
- basically the first element of
getTopLevelTypes()
-
getTopLevelTypes
-
toUnformattedString
String toUnformattedString()Return the generated code without any formatting.
-