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