public abstract class AbstractTypeRef extends Object implements Serializable, ITypeRef
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();
}
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) |
void |
unloadTypeInfo() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetAllTypesInHierarchy, getArrayComponent, getArrayLength, getArrayType, getComponentType, getCompoundTypeComponents, getDisplayName, getEnclosingType, getGenericType, getGenericTypeVariables, getInterfaces, getLiteralMetaType, getMetaType, getModifiers, getName, getNamespace, getParameterizedType, getRelativeName, getSupertype, getTypeInfo, getTypeLoader, getTypeParameters, isAbstract, isArray, isAssignableFrom, isCompoundType, isEnum, isFinal, isGenericType, isInterface, isMutable, isParameterizedType, isPrimitive, isValid, makeArrayInstance, setArrayComponentpublic Object readResolve() throws ObjectStreamException
readResolve in interface ITypeObjectStreamExceptionpublic final boolean isStale()
public boolean isReloadable()
isReloadable in interface ITypeRefpublic void setReloadable(boolean bReloadable)
setReloadable in interface ITypeRefpublic IModule getModule()
public ITypeLoader getTypeLoaderDirectly()
getTypeLoaderDirectly in interface ITypeRefpublic void _setStale(RefreshKind refreshKind)
public void unloadTypeInfo()
unloadTypeInfo in interface ITypepublic boolean _shouldReload()
_shouldReload in interface ITypeRefprotected final IType _getType()
public Class<? extends IType> _getClassOfRef()
_getClassOfRef in interface 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 interface ITypeRefCopyright © 2015. All rights reserved.