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
FieldsFields 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()void_setStale(RefreshKind refreshKind) booleanbooleaninthashCode()booleanbooleanTrue if this type has been replaced with a newer version of the same name in the type system.booleanfinal booleanisStale()booleanIType 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.Methods 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
-
_type
-
-
Constructor Details
-
AbstractTypeRef
public AbstractTypeRef()
-
-
Method Details
-
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
-
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() -
_getClassOfRef
- Specified by:
_getClassOfRefin classITypeRef
-
_reload
protected final void _reload() -
_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
-