Package gw.internal.gosu.parser
Class AbstractTypeRef
java.lang.Object
gw.lang.reflect.ITypeRef
gw.internal.gosu.parser.AbstractTypeRef
- All Implemented Interfaces:
IType,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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate booleanprivate booleanprivate ITypeprivate booleanprivate intprivate ITypeLoaderprivate intprivate IModuleprivate Stringprotected ITypeprivate Stringprivate IType[]Fields inherited from interface gw.lang.reflect.IType
EMPTY_ARRAY, EMPTY_TYPE_ARRAY, EMPTY_TYPE_LIST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprotected final IType_getType()This method is called reflectively.protected final void_reload()private voidvoid_setStale(RefreshKind refreshKind) (package private) voidbooleanprivate voidbooleaninthashCode()booleanbooleanTrue if this type has been replaced with a newer version of the same name in the type system.booleanfinal booleanisStale()booleanprivate voidIType requires this method be implemented to ensure IType instances can be centrally defined and cached.voidsetDiscarded(boolean bDiscarded) voidsetReloadable(boolean bReloadable) toString()voidUnload or nullify any references to this IType's ITypeInfo.private voidMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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 Details
-
_typeName
-
_type
-
_module
-
_loader
-
_pureGenericTypeName
-
_componentType
-
_typeParameters
-
_bParameterized
private transient boolean _bParameterized -
_mdChecksum
private transient int _mdChecksum -
_hashCode
private transient volatile int _hashCode -
_bStale
private transient volatile boolean _bStale -
_bReloading
private transient volatile boolean _bReloading -
_deleted
private transient boolean _deleted -
_bReloadable
private transient boolean _bReloadable
-
-
Constructor Details
-
AbstractTypeRef
public AbstractTypeRef()
-
-
Method Details
-
writeObject
- Throws:
IOException
-
readObject
- Throws:
ClassNotFoundExceptionIOException
-
readResolve
Description copied from interface:ITypeIType requires this method be implemented to ensure IType instances can be centrally defined and cached.- Specified by:
readResolvein interfaceIType- Throws:
ObjectStreamException
-
_setType
-
isStale
public final boolean isStale() -
isReloadable
public boolean isReloadable()- Specified by:
isReloadablein classITypeRef
-
setReloadable
public void setReloadable(boolean bReloadable) - Specified by:
setReloadablein classITypeRef
-
getModule
-
getTypeLoaderDirectly
- Specified by:
getTypeLoaderDirectlyin classITypeRef
-
_setStale
-
unloadTypeInfo
public void unloadTypeInfo()Description copied from interface:ITypeUnload or nullify any references to this IType's ITypeInfo.- Specified by:
unloadTypeInfoin interfaceIType
-
equals
-
hashCode
public int hashCode() -
_shouldReload
public boolean _shouldReload()- Specified by:
_shouldReloadin classITypeRef
-
_getType
-
isDeleted
public boolean isDeleted() -
checkNotDeleted
private void checkNotDeleted() -
_getClassOfRef
- Specified by:
_getClassOfRefin classITypeRef
-
_reload
protected final void _reload() -
_resolveType
private void _resolveType() -
_getTypeName
-
_getTypeNameLong
-
_getIndexForSortingFast
-
isDiscarded
public boolean isDiscarded()Description copied from interface:ITypeTrue if this type has been replaced with a newer version of the same name in the type system.- Specified by:
isDiscardedin interfaceIType
-
setDiscarded
public void setDiscarded(boolean bDiscarded) - Specified by:
setDiscardedin interfaceIType
-
_getTypeNameInternal
This method is called reflectively. -
isTypeRefreshedOutsideOfLock
- Specified by:
isTypeRefreshedOutsideOfLockin classITypeRef
-
toString
-