Class JCompilationUnit<E extends IJCompilationUnit>
java.lang.Object
org.palladiosimulator.protocom.lang.GeneratedFile<E>
org.palladiosimulator.protocom.lang.java.impl.JCompilationUnit<E>
- All Implemented Interfaces:
ICompilationUnit
,IJCompilationUnit
- Direct Known Subclasses:
JClass
,JeeClass
,JeeInterface
,JInterface
public abstract class JCompilationUnit<E extends IJCompilationUnit>
extends GeneratedFile<E>
implements IJCompilationUnit
-
Field Summary
Fields inherited from class org.palladiosimulator.protocom.lang.GeneratedFile
fsa, injector, provider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
body()
Template for the body part of this compilation unit: members, methods/signatures.Name of the compilation unit.Collection<? extends IJField>
fields()
Fields of this compilation unit.generate()
Generate the source code for this compilation unit.abstract String
header()
Template for the header part of this compilation unit: package, imports, type definition.Collection of interface names which are either implemented or extended.Collection<? extends IJMethod>
methods()
Methods (or signatures) defined by this compilation unit.Package name of this compilation unit.Methods inherited from class org.palladiosimulator.protocom.lang.GeneratedFile
createFor, filePath, projectName, store
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.palladiosimulator.protocom.lang.ICompilationUnit
filePath, projectName
-
Constructor Details
-
JCompilationUnit
public JCompilationUnit()
-
-
Method Details
-
packageName
Description copied from interface:IJCompilationUnit
Package name of this compilation unit.- Specified by:
packageName
in interfaceIJCompilationUnit
-
compilationUnitName
Description copied from interface:IJCompilationUnit
Name of the compilation unit.- Specified by:
compilationUnitName
in interfaceIJCompilationUnit
-
interfaces
Description copied from interface:IJCompilationUnit
Collection of interface names which are either implemented or extended.- Specified by:
interfaces
in interfaceIJCompilationUnit
-
methods
Description copied from interface:IJCompilationUnit
Methods (or signatures) defined by this compilation unit.- Specified by:
methods
in interfaceIJCompilationUnit
-
fields
Description copied from interface:IJCompilationUnit
Fields of this compilation unit.- Specified by:
fields
in interfaceIJCompilationUnit
-
generate
Description copied from class:GeneratedFile
Generate the source code for this compilation unit.- Specified by:
generate
in classGeneratedFile<E extends IJCompilationUnit>
-
implementedClasses
-
header
Template for the header part of this compilation unit: package, imports, type definition. -
body
Template for the body part of this compilation unit: members, methods/signatures.
-