Package org.praxislive.ide.code.api
Class ClassBodyWrapper
java.lang.Object
org.praxislive.ide.code.api.ClassBodyWrapper
Wrap a provided class body with the specified class name, extended type,
implemented interfaces, and default imports.
Will parse out import statements in the body and add to default import statements. Will parse out extends statement and override the configured extended type unless set to ignore extends.
A filter can be added to control
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA filter implementation can be used to override the default textual output of the various sections of the class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassBodyWrappercreate()defaultImports(List<String> defaultImports) extendsType(String extendedType) filter(ClassBodyWrapper.Filter filter) ignoreExtends(boolean ignore) implementsTypes(List<String> implementedTypes)
-
Method Details
-
className
-
defaultImports
-
extendsType
-
implementsTypes
-
ignoreExtends
-
filter
-
wrap
-
create
-