public abstract class AbstractTypeRef extends ITypeRef implements Serializable
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();
}
| Modifier and Type | Field and Description |
|---|---|
protected IType |
_type |
EMPTY_ARRAY, EMPTY_TYPE_ARRAY, EMPTY_TYPE_LIST| Constructor and Description |
|---|
AbstractTypeRef() |
| Modifier and Type | Method and 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() |
boolean |
equals(Object obj) |
IModule |
getModule() |
ITypeLoader |
getTypeLoaderDirectly() |
int |
hashCode() |
boolean |
isDeleted() |
boolean |
isDiscarded() |
boolean |
isReloadable() |
boolean |
isStale() |
boolean |
isTypeRefreshedOutsideOfLock(IType type) |
Object |
readResolve() |
void |
setDiscarded(boolean bDiscarded) |
void |
setReloadable(boolean bReloadable) |
String |
toString() |
void |
unloadTypeInfo() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAllTypesInHierarchy, getArrayComponent, getArrayLength, getArrayType, getComponentType, getCompoundTypeComponents, getDisplayName, getEnclosingType, getGenericType, getGenericTypeVariables, getInterfaces, getLiteralMetaType, getMetaType, getModifiers, getName, getNamespace, getParameterizedType, getRelativeName, getSourceFiles, getSupertype, getTypeInfo, getTypeLoader, getTypeParameters, isAbstract, isArray, isAssignableFrom, isCompoundType, isDynamic, isEnum, isFinal, isGenericType, isInterface, isMutable, isParameterizedType, isPrimitive, isValid, makeArrayInstance, setArrayComponentprotected transient volatile IType _type
public Object readResolve() throws ObjectStreamException
readResolve in interface ITypeObjectStreamExceptionpublic final boolean isStale()
public boolean isReloadable()
isReloadable in class ITypeRefpublic void setReloadable(boolean bReloadable)
setReloadable in class ITypeRefpublic IModule getModule()
public ITypeLoader getTypeLoaderDirectly()
getTypeLoaderDirectly in class ITypeRefpublic void _setStale(RefreshKind refreshKind)
public void unloadTypeInfo()
unloadTypeInfo in interface ITypepublic boolean _shouldReload()
_shouldReload in class ITypeRefprotected final IType _getType()
public Class<? extends IType> _getClassOfRef()
_getClassOfRef in class ITypeRefprotected final void _reload()
public String _getTypeName()
public String _getTypeNameLong()
public int _getIndexForSortingFast(String key)
public boolean isDiscarded()
isDiscarded in interface ITypepublic void setDiscarded(boolean bDiscarded)
setDiscarded in interface ITypepublic String _getTypeNameInternal()
public boolean isTypeRefreshedOutsideOfLock(IType type)
isTypeRefreshedOutsideOfLock in class ITypeRefCopyright © 2020. All rights reserved.