public interface Module extends NamespaceModel
Modifier and Type | Method and Description |
---|---|
void |
addConstant(ConstantInfo constantInfo)
Adds a constant.
|
NamedClassType |
getClassType(String name)
Returns a class type defined in this module with a given name.
|
Collection<NamedClassType> |
getClassTypes()
Returns class types, declared in this Module
|
ConstantInfo |
getConstant(String name)
Returns a constant declared in this module.
|
Collection<ConstantInfo> |
getConstants()
Returns a collection of constants declared in this module.
|
Object |
getConstantValue(String name)
Returns the constant value.
|
Collection<EnumerationType> |
getEnumerationTypes()
Returns a collection of enumeration types declared in this module.
|
Collection<InterfaceType> |
getInterfaceTypes()
Returns interface types, declared in this Module
|
Collection<NamedType> |
getNamedTypes()
Returns a collection of named types (records, enumerations etc.) declared
in this module.
|
Collection<RecordType> |
getRecordTypes()
Returns record types, declared in this Module
|
void |
registerEnumeration(EnumerationType enumType)
Registers an enumeration type.
|
void |
registerInterfaceType(InterfaceType type)
Registers given interface type, that is declared in this Module
|
void |
registerRecordType(RecordType type)
Registers given record type, that is declared in this Module
|
void |
setConstantValue(String name,
Object value)
Sets the constant value.
|
addReferencedOperation, addSignature, addVariable, addVariable, addVariable, addVariable, findNamedType, getAllImportedModules, getAlternativeName, getCompiled, getConstants, getExtensionMethods, getExtensionMethods, getImportedModuleByName, getImportedModules, getLocalSignaturesForName, getModule, getName, getParent, getReferencedOperation, getSignatures, getSignatures, getSignaturesForName, getSignaturesForName, getSignaturesForNamedArgs, getStaticType, getThisType, getTypeForName, getVariable, getVariable, getVariablePrivacy, getVariables, getVariables, getVisibleConstants, getVisibleNamedTypes, getVisibleRecordTypes, getVisibleSignatures, getVisibleVariables, isModule, setAlternativeName, setCompiled, validateIdentifier
void registerRecordType(RecordType type)
type
- Collection<RecordType> getRecordTypes()
void registerInterfaceType(InterfaceType type)
type
- Collection<InterfaceType> getInterfaceTypes()
NamedClassType getClassType(String name)
name
- Collection<NamedClassType> getClassTypes()
void registerEnumeration(EnumerationType enumType)
enumType
- Collection<NamedType> getNamedTypes()
Collection<EnumerationType> getEnumerationTypes()
ConstantInfo getConstant(String name)
name
- null
if there is no constant with a given nameObject getConstantValue(String name)
name
- void addConstant(ConstantInfo constantInfo)
constantInfo
- void setConstantValue(String name, Object value)
name
- value
- Collection<ConstantInfo> getConstants()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.