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 Stringbody()Template for the body part of this compilation unit: members, methods/signatures.StringcompilationUnitName()Name of the compilation unit.Collection<? extends IJField>fields()Fields of this compilation unit.Stringgenerate()Generate the source code for this compilation unit.abstract Stringheader()Template for the header part of this compilation unit: package, imports, type definition.CharSequenceimplementedClasses()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.StringpackageName()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:IJCompilationUnitPackage name of this compilation unit.- Specified by:
packageNamein interfaceIJCompilationUnit
-
compilationUnitName
public String compilationUnitName()
Description copied from interface:IJCompilationUnitName of the compilation unit.- Specified by:
compilationUnitNamein interfaceIJCompilationUnit
-
interfaces
public Collection<String> interfaces()
Description copied from interface:IJCompilationUnitCollection of interface names which are either implemented or extended.- Specified by:
interfacesin interfaceIJCompilationUnit
-
methods
public Collection<? extends IJMethod> methods()
Description copied from interface:IJCompilationUnitMethods (or signatures) defined by this compilation unit.- Specified by:
methodsin interfaceIJCompilationUnit
-
fields
public Collection<? extends IJField> fields()
Description copied from interface:IJCompilationUnitFields of this compilation unit.- Specified by:
fieldsin interfaceIJCompilationUnit
-
generate
public String generate()
Description copied from class:GeneratedFileGenerate the source code for this compilation unit.- Specified by:
generatein 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.
-
-