public class BasicModulePart extends AbstractNamespace implements ModulePart
| Constructor and Description |
|---|
BasicModulePart(NamespaceModel parent)
Creates new instance.
|
BasicModulePart(String name,
NamespaceModel parent)
Creates new instance.
|
BasicModulePart(String name,
NamespaceModel parent,
Collection<? extends Module> imports)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addReferencedOperation(ReferencedOperation refOper)
Adds referenced operation so that it can be referenced for expressions compiled to java.
|
void |
addSignature(FunctionSignature signature)
Registers a function signature in this namespace.
|
Map<String,Module> |
allImportedModules()
Returns an immutable map of all imports.
|
Collection<FunctionSignature> |
getLocalSignaturesForName(String name)
Returns the local function signatures for given name.
|
Module |
getModule()
Returns the enclosing module.
|
NamespaceModel |
getParent()
Returns the parent namespace or null.
|
ReferencedOperation |
getReferencedOperation(String id)
Returns operation for the id.
|
Collection<FunctionSignature> |
getSignatures()
Returns function signatures defined in this namespace.
|
ClassType |
getStaticType()
Returns type for this namespace used for static methods.
|
ClassType |
getThisType()
Returns type for this namespace.
|
NamedType |
getTypeForName(String typeName)
Returns registered named type corresponding to given name.
|
Collection<VariableInfo> |
getVisibleVariables()
Returns a collection of all visible variables.
|
protected Map<String,Module> |
importedModules()
Returns an immutable map of imports.
|
boolean |
isModule()
Returns true if this is a module.
|
String |
toString() |
addModules, addVariable, addVariable, addVariable, addVariable, findNamedType, getAllImportedModules, getAlternativeName, getCompiled, getConstants, getExtensionMethods, getExtensionMethods, getImportedModuleByName, getImportedModules, getName, getSignatures, getSignaturesForName, getSignaturesForName, getSignaturesForNamedArgs, getVariable, getVariable, getVariablePrivacy, getVariables, getVariables, getVisibleConstants, getVisibleNamedTypes, getVisibleRecordTypes, getVisibleSignatures, setAlternativeName, setCompiled, validateIdentifierclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddVariable, addVariable, addVariable, addVariable, findNamedType, getAllImportedModules, getAlternativeName, getCompiled, getConstants, getExtensionMethods, getExtensionMethods, getImportedModuleByName, getImportedModules, getName, getSignatures, getSignaturesForName, getSignaturesForName, getSignaturesForNamedArgs, getVariable, getVariable, getVariablePrivacy, getVariables, getVariables, getVisibleConstants, getVisibleNamedTypes, getVisibleRecordTypes, getVisibleSignatures, setAlternativeName, setCompiled, validateIdentifierpublic BasicModulePart(NamespaceModel parent)
parent - public BasicModulePart(String name, NamespaceModel parent)
name - parent - public BasicModulePart(String name, NamespaceModel parent, Collection<? extends Module> imports)
name - parent - imports - public String toString()
toString in class AbstractNamespaceprotected Map<String,Module> importedModules()
AbstractNamespaceimportedModules in class AbstractNamespacepublic Map<String,Module> allImportedModules()
AbstractNamespaceallImportedModules in class AbstractNamespacepublic NamespaceModel getParent()
NamespaceModelgetParent in interface NamespaceModelpublic Module getModule()
NamespaceModelgetModule in interface NamespaceModelpublic NamedType getTypeForName(String typeName)
NamespaceModelgetTypeForName in interface NamespaceModelpublic void addSignature(FunctionSignature signature)
NamespaceModeladdSignature in interface NamespaceModelsignature - function signature to be registered in this namespacepublic final Collection<FunctionSignature> getSignatures()
NamespaceModelgetSignatures in interface NamespaceModelpublic Collection<FunctionSignature> getLocalSignaturesForName(String name)
NamespaceModelgetLocalSignaturesForName in interface NamespaceModelpublic Collection<VariableInfo> getVisibleVariables()
NamespaceModelgetVisibleVariables in interface NamespaceModelgetVisibleVariables in class AbstractNamespacepublic boolean isModule()
NamespaceModelisModule in interface NamespaceModelpublic ClassType getThisType()
NamespaceModelgetThisType in interface NamespaceModelpublic ClassType getStaticType()
NamespaceModelgetStaticType in interface NamespaceModelpublic void addReferencedOperation(ReferencedOperation refOper)
NamespaceModeladdReferencedOperation in interface NamespaceModelpublic ReferencedOperation getReferencedOperation(String id)
NamespaceModelgetReferencedOperation in interface NamespaceModelCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.