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 Constructor Description JCompilationUnit()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract String
body()
Template for the body part of this compilation unit: members, methods/signatures.String
compilationUnitName()
Name of the compilation unit.Collection<? extends IJField>
fields()
Fields of this compilation unit.String
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.CharSequence
implementedClasses()
Collection<String>
interfaces()
Collection of interface names which are either implemented or extended.Collection<? extends IJMethod>
methods()
Methods (or signatures) defined by this compilation unit.String
packageName()
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
-
-
-
-
Method Detail
-
packageName
public String packageName()
Description copied from interface:IJCompilationUnit
Package name of this compilation unit.- Specified by:
packageName
in interfaceIJCompilationUnit
-
compilationUnitName
public String compilationUnitName()
Description copied from interface:IJCompilationUnit
Name of the compilation unit.- Specified by:
compilationUnitName
in interfaceIJCompilationUnit
-
interfaces
public Collection<String> interfaces()
Description copied from interface:IJCompilationUnit
Collection of interface names which are either implemented or extended.- Specified by:
interfaces
in interfaceIJCompilationUnit
-
methods
public Collection<? extends IJMethod> methods()
Description copied from interface:IJCompilationUnit
Methods (or signatures) defined by this compilation unit.- Specified by:
methods
in interfaceIJCompilationUnit
-
fields
public Collection<? extends IJField> fields()
Description copied from interface:IJCompilationUnit
Fields of this compilation unit.- Specified by:
fields
in interfaceIJCompilationUnit
-
generate
public String generate()
Description copied from class:GeneratedFile
Generate the source code for this compilation unit.- Specified by:
generate
in classGeneratedFile<E extends IJCompilationUnit>
-
implementedClasses
public CharSequence implementedClasses()
-
header
public abstract String header()
Template for the header part of this compilation unit: package, imports, type definition.
-
body
public abstract String body()
Template for the body part of this compilation unit: members, methods/signatures.
-
-