public interface Module extends NamespaceModel
Modifier and Type | Method and Description |
---|---|
void |
addConstant(ConstantInfo constantInfo)
Adds a constant.
|
NamedClassType |
getClassType(java.lang.String name)
Returns a class type defined in this module with a given name.
|
java.util.Collection<NamedClassType> |
getClassTypes()
Returns class types, declared in this Module
|
ConstantInfo |
getConstant(java.lang.String name)
Returns a constant declared in this module.
|
java.util.Collection<ConstantInfo> |
getConstants()
Returns a collection of constants declared in this module.
|
java.lang.Object |
getConstantValue(java.lang.String name)
Returns the constant value.
|
java.util.Collection<EnumerationType> |
getEnumerationTypes()
Returns a collection of enumeration types declared in this module.
|
java.util.Collection<InterfaceType> |
getInterfaceTypes()
Returns interface types, declared in this Module
|
java.util.Collection<NamedType> |
getNamedTypes()
Returns a collection of named types (records, enumerations etc.) declared
in this module.
|
java.util.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(java.lang.String name,
java.lang.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
- java.util.Collection<RecordType> getRecordTypes()
void registerInterfaceType(InterfaceType type)
type
- java.util.Collection<InterfaceType> getInterfaceTypes()
NamedClassType getClassType(java.lang.String name)
name
- java.util.Collection<NamedClassType> getClassTypes()
void registerEnumeration(EnumerationType enumType)
enumType
- java.util.Collection<NamedType> getNamedTypes()
java.util.Collection<EnumerationType> getEnumerationTypes()
ConstantInfo getConstant(java.lang.String name)
name
- null
if there is no constant with a given namejava.lang.Object getConstantValue(java.lang.String name)
name
- void addConstant(ConstantInfo constantInfo)
constantInfo
- void setConstantValue(java.lang.String name, java.lang.Object value)
name
- value
- java.util.Collection<ConstantInfo> getConstants()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.