Package gw.lang.reflect.java
Interface IJavaType
- All Superinterfaces:
ICanBeAnnotation,IEnhanceableType,IFileRepositoryBasedType,IHasInnerClass,IHasJavaClass,IJavaBackedType,IJavaBackedTypeData,IParameterizableType,IType,Serializable
- All Known Subinterfaces:
IJavaEnumTypeInternal,IJavaTypeInternal
- All Known Implementing Classes:
JavaEnumType,JavaType
public interface IJavaType
extends IJavaBackedType, IEnhanceableType, IHasInnerClass, IFileRepositoryBasedType, IParameterizableType, ICanBeAnnotation
-
Field Summary
Fields inherited from interface gw.lang.reflect.IType
EMPTY_ARRAY, EMPTY_TYPE_ARRAY, EMPTY_TYPE_LIST -
Method Summary
Modifier and TypeMethodDescriptionCreates the Gosu proxy type for this class.Returns the Gosu proxy for this class.If this is a parameterized type, returns the generic type this type parameterizes.Deprecated.Use only at runtime.Methods inherited from interface gw.lang.reflect.ICanBeAnnotation
isAnnotationMethods inherited from interface gw.lang.parser.IFileRepositoryBasedType
getClassType, getJavaName, getSourceFileHandleMethods inherited from interface gw.lang.parser.IHasInnerClass
getInnerClass, getLoadedInnerClasses, resolveRelativeInnerClassMethods inherited from interface gw.lang.reflect.IHasJavaClass
getBackingClassMethods inherited from interface gw.lang.reflect.java.IJavaBackedType
getTypeFromJavaBackedTypeMethods inherited from interface gw.internal.gosu.parser.IParameterizableType
getLoaderParameterizedTypes, isStrictGenericsMethods inherited from interface gw.lang.reflect.IType
compile, getAllTypesInHierarchy, getArrayComponent, getArrayLength, getArrayType, getComponentType, getCompoundTypeComponents, getDisplayName, getEnclosingType, getFunctionalInterface, getGenericTypeVariables, getInterfaces, getLiteralMetaType, getMetaType, getModifiers, getName, getNamespace, getParameterizedType, getRelativeName, getSourceFiles, getSupertype, getTypeInfo, getTypeLoader, getTypeParameters, isAbstract, isArray, isAssignableFrom, isCompilable, isCompoundType, isDiscarded, isDynamic, isEnum, isFinal, isGenericType, isInterface, isMutable, isParameterizedType, isPrimitive, isValid, makeArrayInstance, readResolve, setArrayComponent, setDiscarded, unloadTypeInfo
-
Method Details
-
getIntrinsicClass
Class getIntrinsicClass()Deprecated.Use only at runtime. At compile time use getBackingClassInfo().Returns the java class for this java type- Returns:
- the java class for this java type
-
getBackingClassInfo
IJavaClassInfo getBackingClassInfo()- Specified by:
getBackingClassInfoin interfaceIJavaBackedTypeData
-
getInnerClasses
- Specified by:
getInnerClassesin interfaceIHasInnerClass- Returns:
- An array of Java types reflecting all the classes and interfaces declared as members of the class represented by this Class object. These include public, protected, internal, and private classes and interfaces declared by the class, but excludes inherited classes and interfaces.
-
getGenericType
IJavaType getGenericType()If this is a parameterized type, returns the generic type this type parameterizes. Otherwise, returns null.- Specified by:
getGenericTypein interfaceIType
-
getAdapterClass
IGosuClass getAdapterClass()Returns the Gosu proxy for this class. -
createAdapterClass
IGosuClass createAdapterClass()Creates the Gosu proxy type for this class.- Returns:
- The newly created proxy type.
-
getRetainedMemory
ObjectSize getRetainedMemory()
-