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 Map
static final SystemOutLogger
private static final ITypeUsesMap
private static DefaultEntityAccess
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEnhancementMethods
(IType typeToEnhance, Collection methodsToAddTo) private void
addEnhancementMethods
(IType typeToEnhance, Collection methodsToAddTo, IModule module, Set<IModule> visited) void
addEnhancementProperties
(IType typeToEnhance, Map propertyInfosToAddTo, boolean caseSensitive) private void
addEnhancementProperties
(IType typeToEnhance, Map propertyInfosToAddTo, boolean caseSensitive, IModule module, Set<IModule> visited) boolean
areBeansEqual
(Object bean1, Object bean2) boolean
Get a set of type names that are automatically importedgetEntityIdProperty
(IType rootType) getEntityInstanceFrom
(Object entity, IType classEntity) getExtendedTypeDataFactory
(String typeName) long
getHashedEntityId
(String strId, IType classEntity) getLocalizedTypeName
(IType type) static DefaultEntityAccess
instance()
boolean
isDomainInstance
(Object value) boolean
isEntityClass
(IType cls) boolean
isInternal
(IType cls) boolean
makeStringFrom
(Object obj) void
reloadedTypes
(String[] types) boolean
shouldAddWarning
(IType type, IParseIssue warning) boolean
verifyValueForType
(IType type, Object value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:IEntityAccess
Get a set of type names that are automatically imported- Specified by:
getDefaultTypeUses
in interfaceIEntityAccess
- Returns:
- Set of type names that are automatically imported
-
isDomainInstance
- Specified by:
isDomainInstance
in interfaceIEntityAccess
- Returns:
- x
-
isEntityClass
- Specified by:
isEntityClass
in interfaceIEntityAccess
- Returns:
- x
-
getEntityInstanceFrom
- Specified by:
getEntityInstanceFrom
in interfaceIEntityAccess
- Returns:
- x
-
areBeansEqual
- Specified by:
areBeansEqual
in interfaceIEntityAccess
- Returns:
- x
-
verifyValueForType
- Specified by:
verifyValueForType
in interfaceIEntityAccess
- Parameters:
type
-value
-- Returns:
- Throws:
RuntimeException
-
makeStringFrom
- Specified by:
makeStringFrom
in interfaceIEntityAccess
-
getHashedEntityId
- Specified by:
getHashedEntityId
in interfaceIEntityAccess
- Returns:
- x
-
isInternal
- Specified by:
isInternal
in interfaceIEntityAccess
- Returns:
- x
-
getLogger
- Specified by:
getLogger
in 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:
getLocale
in interfaceIEntityAccess
-
getCurrentTime
- Specified by:
getCurrentTime
in interfaceIEntityAccess
-
getTimeZone
- Specified by:
getTimeZone
in interfaceIEntityAccess
-
addEnhancementMethods
- Specified by:
addEnhancementMethods
in 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:
addEnhancementProperties
in interfaceIEntityAccess
-
addEnhancementProperties
-
getPluginClassLoader
- Specified by:
getPluginClassLoader
in interfaceIEntityAccess
-
getPluginRepositories
- Specified by:
getPluginRepositories
in interfaceIEntityAccess
-
getWebServerPaths
- Specified by:
getWebServerPaths
in interfaceIEntityAccess
-
isUnreachableCodeDetectionOn
public boolean isUnreachableCodeDetectionOn()- Specified by:
isUnreachableCodeDetectionOn
in interfaceIEntityAccess
-
getKeyType
- Specified by:
getKeyType
in interfaceIEntityAccess
-
getEntityIdProperty
- Specified by:
getEntityIdProperty
in interfaceIEntityAccess
-
shouldAddWarning
- Specified by:
shouldAddWarning
in interfaceIEntityAccess
-
getLanguageLevel
- Specified by:
getLanguageLevel
in interfaceIEntityAccess
-
getGosuClassLoadingObservers
- Specified by:
getGosuClassLoadingObservers
in interfaceIEntityAccess
-
areUsesStatementsAllowedInStatementLists
- Specified by:
areUsesStatementsAllowedInStatementLists
in interfaceIEntityAccess
-
getAdditionalSourceRoots
- Specified by:
getAdditionalSourceRoots
in interfaceIEntityAccess
-
reloadedTypes
- Specified by:
reloadedTypes
in interfaceIEntityAccess
-
getExtendedTypeDataFactory
- Specified by:
getExtendedTypeDataFactory
in interfaceIEntityAccess
-
getLocalizedTypeName
- Specified by:
getLocalizedTypeName
in interfaceIEntityAccess
-
getLocalizedTypeInfoName
- Specified by:
getLocalizedTypeInfoName
in interfaceIEntityAccess
-