Package gw.internal.gosu.parser
Class DefaultEntityAccess
java.lang.Object
gw.config.BaseService
gw.internal.gosu.parser.DefaultEntityAccess
- All Implemented Interfaces:
IService,IEntityAccess,IPluginHost
- Direct Known Subclasses:
GWEntityAccess,ShellEntityAccess
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<IGosuClassLoadingObserver>private Mapstatic final SystemOutLoggerprivate static final ITypeUsesMapprivate static DefaultEntityAccess -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEnhancementMethods(IType typeToEnhance, Collection methodsToAddTo) private voidaddEnhancementMethods(IType typeToEnhance, Collection methodsToAddTo, IModule module, Set<IModule> visited) voidaddEnhancementProperties(IType typeToEnhance, Map propertyInfosToAddTo, boolean caseSensitive) private voidaddEnhancementProperties(IType typeToEnhance, Map propertyInfosToAddTo, boolean caseSensitive, IModule module, Set<IModule> visited) booleanareBeansEqual(Object bean1, Object bean2) booleanGet a set of type names that are automatically importedgetEntityIdProperty(IType rootType) getEntityInstanceFrom(Object entity, IType classEntity) getExtendedTypeDataFactory(String typeName) longgetHashedEntityId(String strId, IType classEntity) getLocalizedTypeName(IType type) static DefaultEntityAccessinstance()booleanisDomainInstance(Object value) booleanisEntityClass(IType cls) booleanisInternal(IType cls) booleanmakeStringFrom(Object obj) voidreloadedTypes(String[] types) booleanshouldAddWarning(IType type, IParseIssue warning) booleanverifyValueForType(IType type, Object value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gw.plugin.IPluginHost
getInterface
-
Field Details
-
DEFAULT_LOGGER
-
g_instance
-
EMPTY_TYPE_USES
-
_classLoadingObservers
-
_scopes
-
-
Constructor Details
-
DefaultEntityAccess
public DefaultEntityAccess()
-
-
Method Details
-
instance
-
getDefaultTypeLoader
-
getDefaultTypeUses
Description copied from interface:IEntityAccessGet a set of type names that are automatically imported- Specified by:
getDefaultTypeUsesin interfaceIEntityAccess- Returns:
- Set of type names that are automatically imported
-
isDomainInstance
- Specified by:
isDomainInstancein interfaceIEntityAccess- Returns:
- x
-
isEntityClass
- Specified by:
isEntityClassin interfaceIEntityAccess- Returns:
- x
-
getEntityInstanceFrom
- Specified by:
getEntityInstanceFromin interfaceIEntityAccess- Returns:
- x
-
areBeansEqual
- Specified by:
areBeansEqualin interfaceIEntityAccess- Returns:
- x
-
verifyValueForType
- Specified by:
verifyValueForTypein interfaceIEntityAccess- Parameters:
type-value-- Returns:
- Throws:
RuntimeException
-
makeStringFrom
- Specified by:
makeStringFromin interfaceIEntityAccess
-
getHashedEntityId
- Specified by:
getHashedEntityIdin interfaceIEntityAccess- Returns:
- x
-
isInternal
- Specified by:
isInternalin interfaceIEntityAccess- Returns:
- x
-
getLogger
- Specified by:
getLoggerin interfaceIEntityAccess- Returns:
- the main logger for all Gosu subsystems. This logger must be available at all times during Gosu startup and execution.
-
getLocale
- Specified by:
getLocalein interfaceIEntityAccess
-
getCurrentTime
- Specified by:
getCurrentTimein interfaceIEntityAccess
-
getTimeZone
- Specified by:
getTimeZonein interfaceIEntityAccess
-
addEnhancementMethods
- Specified by:
addEnhancementMethodsin interfaceIEntityAccess
-
addEnhancementMethods
private void addEnhancementMethods(IType typeToEnhance, Collection methodsToAddTo, IModule module, Set<IModule> visited) -
addEnhancementProperties
public void addEnhancementProperties(IType typeToEnhance, Map propertyInfosToAddTo, boolean caseSensitive) - Specified by:
addEnhancementPropertiesin interfaceIEntityAccess
-
addEnhancementProperties
-
getPluginClassLoader
- Specified by:
getPluginClassLoaderin interfaceIEntityAccess
-
getPluginRepositories
- Specified by:
getPluginRepositoriesin interfaceIEntityAccess
-
getWebServerPaths
- Specified by:
getWebServerPathsin interfaceIEntityAccess
-
isUnreachableCodeDetectionOn
public boolean isUnreachableCodeDetectionOn()- Specified by:
isUnreachableCodeDetectionOnin interfaceIEntityAccess
-
getKeyType
- Specified by:
getKeyTypein interfaceIEntityAccess
-
getEntityIdProperty
- Specified by:
getEntityIdPropertyin interfaceIEntityAccess
-
shouldAddWarning
- Specified by:
shouldAddWarningin interfaceIEntityAccess
-
getLanguageLevel
- Specified by:
getLanguageLevelin interfaceIEntityAccess
-
getGosuClassLoadingObservers
- Specified by:
getGosuClassLoadingObserversin interfaceIEntityAccess
-
areUsesStatementsAllowedInStatementLists
- Specified by:
areUsesStatementsAllowedInStatementListsin interfaceIEntityAccess
-
getAdditionalSourceRoots
- Specified by:
getAdditionalSourceRootsin interfaceIEntityAccess
-
reloadedTypes
- Specified by:
reloadedTypesin interfaceIEntityAccess
-
getExtendedTypeDataFactory
- Specified by:
getExtendedTypeDataFactoryin interfaceIEntityAccess
-
getLocalizedTypeName
- Specified by:
getLocalizedTypeNamein interfaceIEntityAccess
-
getLocalizedTypeInfoName
- Specified by:
getLocalizedTypeInfoNamein interfaceIEntityAccess
-