Package gw.internal.gosu.parser
Class AbstractTypeRef
- java.lang.Object
-
- gw.lang.reflect.ITypeRef
-
- gw.internal.gosu.parser.AbstractTypeRef
-
- All Implemented Interfaces:
IType,Serializable
public abstract class AbstractTypeRef extends ITypeRef implements Serializable
This is what the proxy methods look like.public ITypeLoader getTypeLoader() { _reload(); IType itype; try { itype = (IType) _getType(); } catch (ClassCastException classcastexception) { throw new RuntimeException((new StringBuilder("Type interface changed. Expected gw.internal.gosu.parser.IGosuClassInternal for ")).append(_getTypeNameInternal()).toString(), classcastexception); } return (ITypeLoader) itype.getTypeLoader(); }- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected IType_type-
Fields inherited from interface gw.lang.reflect.IType
EMPTY_ARRAY, EMPTY_TYPE_ARRAY, EMPTY_TYPE_LIST
-
-
Constructor Summary
Constructors Constructor Description AbstractTypeRef()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends IType>_getClassOfRef()int_getIndexForSortingFast(String key)protected IType_getType()String_getTypeName()String_getTypeNameInternal()This method is called reflectively.String_getTypeNameLong()protected void_reload()void_setStale(RefreshKind refreshKind)boolean_shouldReload()booleanequals(Object obj)IModulegetModule()ITypeLoadergetTypeLoaderDirectly()inthashCode()booleanisDeleted()booleanisDiscarded()booleanisReloadable()booleanisStale()booleanisTypeRefreshedOutsideOfLock(IType type)ObjectreadResolve()voidsetDiscarded(boolean bDiscarded)voidsetReloadable(boolean bReloadable)StringtoString()voidunloadTypeInfo()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface gw.lang.reflect.IType
compile, getAllTypesInHierarchy, getArrayComponent, getArrayLength, getArrayType, getComponentType, getCompoundTypeComponents, getDisplayName, getEnclosingType, getFunctionalInterface, getGenericType, getGenericTypeVariables, getInterfaces, getLiteralMetaType, getMetaType, getModifiers, getName, getNamespace, getParameterizedType, getRelativeName, getSourceFiles, getSupertype, getTypeInfo, getTypeLoader, getTypeParameters, isAbstract, isArray, isAssignableFrom, isCompilable, isCompoundType, isDynamic, isEnum, isFinal, isGenericType, isInterface, isMutable, isParameterizedType, isPrimitive, isValid, makeArrayInstance, setArrayComponent
-
-
-
-
Field Detail
-
_type
protected transient volatile IType _type
-
-
Method Detail
-
readResolve
public Object readResolve() throws ObjectStreamException
- Specified by:
readResolvein interfaceIType- Throws:
ObjectStreamException
-
isStale
public final boolean isStale()
-
isReloadable
public boolean isReloadable()
- Specified by:
isReloadablein classITypeRef
-
setReloadable
public void setReloadable(boolean bReloadable)
- Specified by:
setReloadablein classITypeRef
-
getModule
public IModule getModule()
-
getTypeLoaderDirectly
public ITypeLoader getTypeLoaderDirectly()
- Specified by:
getTypeLoaderDirectlyin classITypeRef
-
_setStale
public void _setStale(RefreshKind refreshKind)
-
unloadTypeInfo
public void unloadTypeInfo()
- Specified by:
unloadTypeInfoin interfaceIType
-
_shouldReload
public boolean _shouldReload()
- Specified by:
_shouldReloadin classITypeRef
-
_getType
protected final IType _getType()
-
_getClassOfRef
public Class<? extends IType> _getClassOfRef()
- Specified by:
_getClassOfRefin classITypeRef
-
_reload
protected final void _reload()
-
_getTypeName
public String _getTypeName()
-
_getTypeNameLong
public String _getTypeNameLong()
-
_getIndexForSortingFast
public int _getIndexForSortingFast(String key)
-
isDiscarded
public boolean isDiscarded()
- Specified by:
isDiscardedin interfaceIType
-
setDiscarded
public void setDiscarded(boolean bDiscarded)
- Specified by:
setDiscardedin interfaceIType
-
_getTypeNameInternal
public String _getTypeNameInternal()
This method is called reflectively.
-
isTypeRefreshedOutsideOfLock
public boolean isTypeRefreshedOutsideOfLock(IType type)
- Specified by:
isTypeRefreshedOutsideOfLockin classITypeRef
-
-