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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Stringbody()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 Stringheader()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, storeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.palladiosimulator.protocom.lang.ICompilationUnit
filePath, projectName
-
Constructor Details
-
JCompilationUnit
public JCompilationUnit()
-
-
Method Details
-
packageName
Description copied from interface:IJCompilationUnitPackage name of this compilation unit.- Specified by:
packageNamein interfaceIJCompilationUnit
-
compilationUnitName
Description copied from interface:IJCompilationUnitName of the compilation unit.- Specified by:
compilationUnitNamein interfaceIJCompilationUnit
-
interfaces
Description copied from interface:IJCompilationUnitCollection of interface names which are either implemented or extended.- Specified by:
interfacesin interfaceIJCompilationUnit
-
methods
Description copied from interface:IJCompilationUnitMethods (or signatures) defined by this compilation unit.- Specified by:
methodsin interfaceIJCompilationUnit
-
fields
Description copied from interface:IJCompilationUnitFields of this compilation unit.- Specified by:
fieldsin interfaceIJCompilationUnit
-
generate
Description copied from class:GeneratedFileGenerate the source code for this compilation unit.- Specified by:
generatein 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.
-