Class OS_ModuleImpl
java.lang.Object
tripleo.elijah_durable_congenial.lang.impl.OS_ModuleImpl
- All Implemented Interfaces:
Documentable,OS_Container,OS_Element,OS_Module
-
Field Summary
FieldsModifier and TypeFieldDescription@NotNull Attached@NotNull List<EntryPoint>@NotNull List<ModuleItem> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ModuleItem anElement) voidaddDocString(antlr.Token s1) voidaddToContainer(OS_Element anElement) @NotNull List<EntryPoint>@Nullable OS_Elementvoidfinish()@Nullable ClassStatementgetClassByName(String name) Get a class byImpl name.@NotNull CompilationA module has no parent which is an element (not even a package - this is not Java).
If you want the Compilation use the memberparent@NotNull Collection<ModuleItem>getItems()getLsp()@Nullable OS_Elementbooleanboolean@NotNull List<OS_NamedElement>items()voidprelude()@NotNull OS_PackageThe last package declared in the source filepushPackageNamed(Qualident aPackageName) voidremove(ClassStatement cls) voidserializeTo(@NotNull SmallWriter sw) voidsetContext(ModuleContext mctx) voidsetFileName(String fileName) voidvoidsetLsp(LibraryStatementPart aLsp) voidsetParent(@NotNull Compilation parent) voidsetPrelude(OS_Module success) toString()voidvisitGen(@NotNull ElElementVisitor visit) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface tripleo.elijah_durable_congenial.lang.i.OS_Element
asString
-
Field Details
-
_a
-
entryPoints
-
items
-
prelude
-
-
Constructor Details
-
OS_ModuleImpl
public OS_ModuleImpl()
-
-
Method Details
-
add
-
addToContainer
- Specified by:
addToContainerin interfaceOS_Container
-
items
- Specified by:
itemsin interfaceOS_Container
-
addDocString
public void addDocString(antlr.Token s1) - Specified by:
addDocStringin interfaceDocumentable
-
entryPoints
- Specified by:
entryPointsin interfaceOS_Module
-
findClass
-
finish
public void finish() -
getFileName
- Specified by:
getFileNamein interfaceOS_Module
-
getItems
-
getLsp
-
setLsp
-
hasClass
-
isPrelude
public boolean isPrelude() -
postConstruct
public void postConstruct()- Specified by:
postConstructin interfaceOS_Module
-
prelude
-
pullPackageName
The last package declared in the source file- Specified by:
pullPackageNamein interfaceOS_Module- Returns:
- a new OS_Package instance or default_package
-
pushPackageNamed
- Specified by:
pushPackageNamedin interfaceOS_Module
-
serializeTo
- Specified by:
serializeToin interfaceOS_Element- Specified by:
serializeToin interfaceOS_Module
-
setPrelude
- Specified by:
setPreludein interfaceOS_Module
-
setFileName
- Specified by:
setFileNamein interfaceOS_Module
-
setIndexingStatement
- Specified by:
setIndexingStatementin interfaceOS_Module
-
getContext
A module has no parent which is an element (not even a package - this is not Java).
If you want the Compilation use the memberparent- Specified by:
getContextin interfaceOS_Element- Specified by:
getContextin interfaceOS_Module- Returns:
- null
-
getParent
- Specified by:
getParentin interfaceOS_Element- Specified by:
getParentin interfaceOS_Module
-
setParent
-
visitGen
- Specified by:
visitGenin interfaceOS_Element- Specified by:
visitGenin interfaceOS_Module
-
getCompilation
- Specified by:
getCompilationin interfaceOS_Module
-
setContext
- Specified by:
setContextin interfaceOS_Module
-
remove
-
getClassByName
Get a class byImpl name. Must not be qualified. Wont return aNamespaceStatementSame asfindClass(String)- Parameters:
name- the class weImpl are looking for- Returns:
- either the class orImpl null
-
toString
-