Class GWEntityAccess
- java.lang.Object
-
- gw.config.BaseService
-
- gw.internal.gosu.parser.DefaultEntityAccess
-
- gw.internal.gosu.parser.gwPlatform.GWEntityAccess
-
- All Implemented Interfaces:
IService,IEntityAccess,IPluginHost
public class GWEntityAccess extends DefaultEntityAccess
-
-
Field Summary
Fields Modifier and Type Field Description protected IType_beanTypeprotected IType_entityTypeprotected IType_keyTypeprotected IType_typekeyTypeprotected IType_typelistType-
Fields inherited from class gw.internal.gosu.parser.DefaultEntityAccess
DEFAULT_LOGGER
-
-
Constructor Summary
Constructors Constructor Description GWEntityAccess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEnhancementMethods(IType typeToEnhance, Collection methodsToAddTo)voidaddEnhancementProperties(IType typeToEnhance, Map propertyInfosToAddTo, boolean caseSensitive)booleanareBeansEqual(Object bean1, Object bean2)booleanareUsesStatementsAllowedInStatementLists(ICompilableType gosuClass)protected voiddoInit()ITypeUsesMapgetDefaultTypeUses()IPropertyInfogetEntityIdProperty(IType rootType)ITypegetKeyType()ILanguageLevelgetLanguageLevel()booleanisDomainInstance(Object value)booleanisEntityClass(IType type)booleanshouldAddWarning(IType type, IParseIssue warning)booleanverifyValueForType(IType type, Object value)-
Methods inherited from class gw.internal.gosu.parser.DefaultEntityAccess
getAdditionalSourceRoots, getCurrentTime, getDefaultTypeLoader, getEntityInstanceFrom, getExtendedTypeDataFactory, getGosuClassLoadingObservers, getHashedEntityId, getLocale, getLocalizedTypeInfoName, getLocalizedTypeName, getLogger, getPluginClassLoader, getPluginRepositories, getTimeZone, getWebServerPaths, instance, isInternal, isUnreachableCodeDetectionOn, makeStringFrom, reloadedTypes
-
Methods inherited from class gw.config.BaseService
doUninit, init, isInited, uninit
-
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
-
-
-
-
Method Detail
-
doInit
protected void doInit()
- Overrides:
doInitin classBaseService
-
getDefaultTypeUses
public ITypeUsesMap getDefaultTypeUses()
- Specified by:
getDefaultTypeUsesin interfaceIEntityAccess- Overrides:
getDefaultTypeUsesin classDefaultEntityAccess
-
isDomainInstance
public boolean isDomainInstance(Object value)
- Specified by:
isDomainInstancein interfaceIEntityAccess- Overrides:
isDomainInstancein classDefaultEntityAccess- Returns:
- x
-
isEntityClass
public boolean isEntityClass(IType type)
- Specified by:
isEntityClassin interfaceIEntityAccess- Overrides:
isEntityClassin classDefaultEntityAccess- Returns:
- x
-
areBeansEqual
public boolean areBeansEqual(Object bean1, Object bean2)
- Specified by:
areBeansEqualin interfaceIEntityAccess- Overrides:
areBeansEqualin classDefaultEntityAccess- Returns:
- x
-
verifyValueForType
public boolean verifyValueForType(IType type, Object value) throws RuntimeException
- Specified by:
verifyValueForTypein interfaceIEntityAccess- Overrides:
verifyValueForTypein classDefaultEntityAccess- Throws:
RuntimeException
-
addEnhancementMethods
public void addEnhancementMethods(IType typeToEnhance, Collection methodsToAddTo)
- Specified by:
addEnhancementMethodsin interfaceIEntityAccess- Overrides:
addEnhancementMethodsin classDefaultEntityAccess
-
addEnhancementProperties
public void addEnhancementProperties(IType typeToEnhance, Map propertyInfosToAddTo, boolean caseSensitive)
- Specified by:
addEnhancementPropertiesin interfaceIEntityAccess- Overrides:
addEnhancementPropertiesin classDefaultEntityAccess
-
getLanguageLevel
public ILanguageLevel getLanguageLevel()
- Specified by:
getLanguageLevelin interfaceIEntityAccess- Overrides:
getLanguageLevelin classDefaultEntityAccess
-
areUsesStatementsAllowedInStatementLists
public boolean areUsesStatementsAllowedInStatementLists(ICompilableType gosuClass)
- Specified by:
areUsesStatementsAllowedInStatementListsin interfaceIEntityAccess- Overrides:
areUsesStatementsAllowedInStatementListsin classDefaultEntityAccess
-
getKeyType
public IType getKeyType()
- Specified by:
getKeyTypein interfaceIEntityAccess- Overrides:
getKeyTypein classDefaultEntityAccess
-
getEntityIdProperty
public IPropertyInfo getEntityIdProperty(IType rootType)
- Specified by:
getEntityIdPropertyin interfaceIEntityAccess- Overrides:
getEntityIdPropertyin classDefaultEntityAccess
-
shouldAddWarning
public boolean shouldAddWarning(IType type, IParseIssue warning)
- Specified by:
shouldAddWarningin interfaceIEntityAccess- Overrides:
shouldAddWarningin classDefaultEntityAccess
-
-