Class 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 Detail

      • _type

        protected transient volatile IType _type
    • Constructor Detail

      • AbstractTypeRef

        public AbstractTypeRef()
    • Method Detail

      • isStale

        public final boolean isStale()
      • setReloadable

        public void setReloadable​(boolean bReloadable)
        Specified by:
        setReloadable in class ITypeRef
      • getModule

        public IModule getModule()
      • unloadTypeInfo

        public void unloadTypeInfo()
        Description copied from interface: IType
        Unload or nullify any references to this IType's ITypeInfo.
        Specified by:
        unloadTypeInfo in interface IType
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • _getType

        protected final IType _getType()
      • _reload

        protected final void _reload()
      • _getTypeName

        public String _getTypeName()
      • _getTypeNameLong

        public String _getTypeNameLong()
      • _getIndexForSortingFast

        public int _getIndexForSortingFast​(String key)
      • isDiscarded

        public boolean isDiscarded()
        Description copied from interface: IType
        True if this type has been replaced with a newer version of the same name in the type system.
        Specified by:
        isDiscarded in interface IType
      • setDiscarded

        public void setDiscarded​(boolean bDiscarded)
        Specified by:
        setDiscarded in interface IType
      • _getTypeNameInternal

        public String _getTypeNameInternal()
        This method is called reflectively.