Package gw.internal.gosu.dynamic
Class DynamicType
java.lang.Object
gw.lang.reflect.AbstractType
gw.lang.reflect.TypeBase
gw.internal.gosu.dynamic.DynamicType
- All Implemented Interfaces:
IDynamicType,IPlaceholder,IType,Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate LockingLazyVar<DynamicTypeInfo>private DynamicTypeLoaderprivate ITypeRefFields inherited from class gw.lang.reflect.TypeBase
_arrayComponentClassFields inherited from interface gw.lang.reflect.IDynamicType
PKG, QNAME, RNAMEFields inherited from interface gw.lang.reflect.IPlaceholder
UNHANDLEDFields inherited from interface gw.lang.reflect.IType
EMPTY_ARRAY, EMPTY_TYPE_ARRAY, EMPTY_TYPE_LIST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIf this is an array type, a type representing the component type of the array.IType[]getName()The fully qualified name of this intrinsic type.The namespace for this class.(package private) ITypeRefThe relative or unqualified name.Returns the type representing the supertype of this type.Get the type information for this intrinsic type.Returns the type loader responsible for loading this intrinsic type.booleanisAssignableFrom(IType type) Determines if the type represented by this intrinsic type is either the same as, or is a super-type of the type represented by the specified type parameter.booleanisFinal()True if this type cannot be extended.booleanMethods inherited from class gw.lang.reflect.TypeBase
getAllClassesInClassHierarchyAsIntrinsicTypes, getAllTypesInHierarchy, getArrayComponent, getArrayComponentClass, getArrayLength, getArrayType, getArrayVersionsOfEachType, getCompoundTypeComponents, getDisplayName, getEnclosingType, getGenericType, getGenericTypeVariables, getModifiers, getParameterizedType, getTypeParameters, isAbstract, isArray, isCompoundType, isDiscarded, isEnum, isGenericType, isInterface, isMutable, isParameterizedType, isPrimitive, isValid, loadAllTypesInHierarchy, loadJavaType, makeArrayInstance, makeArrayType, readResolve, setArrayComponent, setDiscarded, toString, unloadTypeInfoMethods inherited from class gw.lang.reflect.AbstractType
getLiteralMetaType, getMetaType, getTheRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gw.lang.reflect.IType
compile, getAllTypesInHierarchy, getArrayComponent, getArrayLength, getArrayType, getCompoundTypeComponents, getDisplayName, getEnclosingType, getFunctionalInterface, getGenericType, getGenericTypeVariables, getLiteralMetaType, getMetaType, getModifiers, getParameterizedType, getSourceFiles, getTypeParameters, isAbstract, isArray, isCompilable, isCompoundType, isDiscarded, isDynamic, isEnum, isGenericType, isInterface, isMutable, isParameterizedType, isPrimitive, isValid, makeArrayInstance, readResolve, setArrayComponent, setDiscarded, unloadTypeInfo
-
Field Details
-
_typeLoader
-
_typeInfo
-
_typeRef
-
-
Constructor Details
-
DynamicType
-
-
Method Details
-
isPlaceholder
public boolean isPlaceholder()- Specified by:
isPlaceholderin interfaceIPlaceholder
-
isFinal
public boolean isFinal()Description copied from interface:ITypeTrue if this type cannot be extended. -
getName
Description copied from interface:ITypeThe fully qualified name of this intrinsic type. -
getRelativeName
Description copied from interface:ITypeThe relative or unqualified name. For a class this should be just the class name without the package name.- Specified by:
getRelativeNamein interfaceIType
-
getNamespace
Description copied from interface:ITypeThe namespace for this class. For a java class this will be the package, while for other types of intrinsic types it could be another logical name.- Specified by:
getNamespacein interfaceIType
-
getTypeLoader
Description copied from interface:ITypeReturns the type loader responsible for loading this intrinsic type.- Specified by:
getTypeLoaderin interfaceIType
-
getSupertype
Description copied from interface:ITypeReturns the type representing the supertype of this type. Returns null if this type has no supertype.- Specified by:
getSupertypein interfaceIType
-
getInterfaces
- Specified by:
getInterfacesin interfaceIType- Returns:
- If this is a class, returns a list of all the interfaces this type implements. Similarly, if this is an interface, returns a list of all the interfaces this type extends. In any case, returns an empty list if this type neither implements nor extends interfaces.
-
getTypeInfo
Description copied from interface:ITypeGet the type information for this intrinsic type.- Specified by:
getTypeInfoin interfaceIType- See Also:
-
getComponentType
Description copied from interface:ITypeIf this is an array type, a type representing the component type of the array. Otherwise null.- Specified by:
getComponentTypein interfaceIType- Overrides:
getComponentTypein classTypeBase
-
isAssignableFrom
Description copied from interface:ITypeDetermines if the type represented by this intrinsic type is either the same as, or is a super-type of the type represented by the specified type parameter.- Specified by:
isAssignableFromin interfaceIType- Overrides:
isAssignableFromin classTypeBase
-
getOrCreateTypeReference
ITypeRef getOrCreateTypeReference()
-