- All Superinterfaces:
Member
- All Known Implementing Classes:
Abs.Type
,Acos.Type
,AdditionalArrange.Type
,AlgorithmSwitchShader.Type
,AllFilter.Type
,AmbientLight.Type
,Arc.Type
,ArcType
,AreaLight.Type
,ArrangeLOD.Type
,Arrow.Type
,Asin.Type
,ASMType
,Atan.Type
,BernoulliProbability.Type
,BetaprimeProbability.Type
,BetaProbability.Type
,BezierCurve.Type
,BezierSurface.Type
,BinomialProbability.Type
,BlackbodySPD.Type
,BlackbodySpectralCurve.Type
,BoundedType
,BSplineCurveImpl.Type
,BSplineOfVertices.Type
,BSplineSurfaceImpl.Type
,Camera.Type
,CauchyProbability.Type
,CClass
,Ceil.Type
,Chain.Type
,ChannelSPD.Type
,ChisquareProbability.Type
,CIENormSPD.Type
,Circle.Type
,CircleGraphLayout.Type
,Circular.Type
,ClassAdapter
,ComponentTransform.Type
,Connection.Type
,ConstantSPD.Type
,ConstantSpectralCurve.Type
,Cos.Type
,Cosh.Type
,Cubic.Type
,Curve.Type
,CurveRef.Type
,CurveSequence.Type
,CustomFunction.Type
,CustomGraphDescriptor.Type
,DartThrowing.Type
,DatasetRef.Type
,DavidsonHarelLayout.Type
,DefaultView3DEventFactory.Type
,DirectionalLight.Type
,E.Type
,EadesLayout.Type
,EdgeBasedLayout.Type
,EdgeBasedLayout2.Type
,EdgeBits.Type
,Ellipse.Type
,EllipseType
,EmptyEventFactory.Type
,EmptyViewEventFactory.Type
,EnergyModelLayout.Type
,EnumerationType
,ErlangProbability.Type
,Exp.Type
,Exp2.Type
,Expm1.Type
,ExtrudedSurface.Type
,FileRef.Type
,FilterDescriptor.Type
,FixedImageAdapter.Type
,Floor.Type
,FluxLightModel.Type
,FluxLightModelTracer.Type
,FontAdapter.Type
,ForceBasedLayout.Type
,FProbability.Type
,FruchtermanReingoldLayout.Type
,Function.Type
,FunctionRef.Type
,GammaProbability.Type
,GeneralPurposeLayout.Type
,GeometricArrange.Type
,GeometricProbability.Type
,GraphDescriptor.Type
,GraphObjectRef.Type
,Graytone.Type
,GRSMesh.Type
,HalftoningArrange.Type
,HeightField.Type
,HeightFieldMapping.Type
,Helix.Type
,Hexagon.Type
,HighlightFilterDescriptor.Type
,HornLOD.Type
,HydraLOD.Type
,Id.Type
,ImageAdapter.Type
,ImageHeightField.Type
,ImageRef.Type
,IntersectionType
,InvgammaProbability.Type
,IOR.Type
,IORShader.Type
,IrregularSpectralCurve.Type
,IsoCurve.Type
,ItemReference.Type
,Kachelung.Type
,Layout.Type
,LazyType
,LensProjection.Type
,LightBase.Type
,LightDistribution.Type
,LightDistributionRef.Type
,LightDistributionResource.Type
,LightModel.Type
,LightModelD.Type
,LocationParameterBase.Type
,Log.Type
,Log10.Type
,LogisticProbability.Type
,Lognormal2Probability.Type
,LognormalProbability.Type
,ManageableType
,MaterialRef.Type
,Matrix3dType
,Matrix3fType
,Matrix4dType
,Matrix4fType
,MetaGraphDescriptor.Type
,Navigator2DFactory.Type
,Navigator3DFactory.Type
,NegexpProbability.Type
,NetworkHeightField.Type
,Node.NType
,NoHighlightView3DEventFactory.Type
,NoneFilter.Type
,Normal2Probability.Type
,NormalProbability.Type
,ObjectData.Type
,Octagon.Type
,ParallelProjection.Type
,ParetoProbability.Type
,PascalProbability.Type
,PerspectiveProjection.Type
,Phi.Type
,PhiBallLOD.Type
,PhysicalLight.Type
,Pi.Type
,PointCloudView3DEventManager.Type
,PointLight.Type
,PoissonProbability.Type
,ProbabilityArrange.Type
,ProductSurface.Type
,ProfileSweep.Type
,ProjectGraphDescriptor.Type
,Projection.Type
,Rad.Type
,Ramp.Type
,RandomBase.Type
,RandomLayout.Type
,RectangleType
,RectangularHeightFieldMapping.Type
,Reference.Type
,RegularPolygon.Type
,RegularSpectralCurve.Type
,RGBSPD.Type
,RGBSpectralCurve.Type
,Rhombus.Type
,Rnd.Type
,Rndabs.Type
,RoundRectangleType
,RuledSurface.Type
,Scallop.Type
,SCOType
,SelectionEventFactory.Type
,Sequence.Type
,ShaderRef.Type
,SideSwitchShader.Type
,SimpleEdgeBasedLayout.Type
,Sin.Type
,Sin01.Type
,Sinh.Type
,SkinnedSurface.Type
,SPD.Type
,SPDCurve.Type
,SPDResource.Type
,SpectralLight.Type
,SpectralLightMapNode.Type
,SpectrumRef.Type
,SphericalHeightFieldMapping.Type
,SplineFunction.Type
,SpotLight.Type
,SpringLayout.Type
,Sqr.Type
,Sqrt.Type
,SquareLayout.Type
,StraightLine.Type
,StrokeAdapter.Type
,SubGraphDescriptor.Type
,SubGraphRef.Type
,SubGrid.Type
,SugiyamaLayout.Type
,SurfaceRef.Type
,Sweep.Type
,SweepSequence.Type
,SwitchShader.Type
,SwitchShape.Type
,SwungSurface.Type
,Tan.Type
,Tanh.Type
,ToolEvent2DFactory.Type
,ToolEventFactory.Type
,TopologyGraphDescriptor.Type
,TouchLayout.Type
,Trapezoid.Type
,TreeLayout.Type
,TreeLOD.Type
,Triangle.Type
,Triangle.Type
,TstudentProbability.Type
,Tuple2dType
,Tuple2fType
,Tuple3dType
,Tuple3fType
,Tuple4dType
,Tuple4fType
,TurtleState.Type
,TypeDecorator
,TypeImpl
,UniformProbability.Type
,UniformScale.Type
,VertexGridImpl.Type
,VertexListImpl.Type
,VertexSequence.Type
,VertexSetBase.Type
,View.Type
,View2D.Type
,View2DEventFactory.Type
,View3D.Type
,Voronoi_Lloyd.Type
,WeibullProbability.Type
,XArray
,XClass
The interface
Type
is similar in function to the class
Class
. It represents a type of the Java programming
language and provides access to its properties (e.g., name, members).
In contrast to Class
, an instance of Type
does not necessarily represent a compiled class (available as byte-code),
it may also represent an object which provides functionality similar
to real classes.- Author:
- Ole Kniemeyer
-
Field Summary
Modifier and TypeFieldDescriptionRepresents the primitive typeboolean
.Represents the primitive typebyte
.Represents the primitive typechar
.Represents the classClass
.Represents the primitive typedouble
.Represents the primitive typefloat
.Direct supertype for primitive floating-point types.Represents the primitive typeint
.Direct supertype for primitive integral types.static final Type
Represents an invalid type.static final int
Mask representing the valid modifiers for local classes.Represents the primitive typelong
.static final int
Mask representing the valid modifiers for member classes.static final int
Mask representing the valid modifiers for member interfaces.static final Type<?>
Represents the null type of the Java programming language.Represents the classNumber
.Base type for all primitive numeric types.Represents the classObject
.Represents the primitive typeshort
.Represents the classString
.Represents the classString
.static final int
Mask representing the valid modifiers for top-level classes.static final int
Mask representing the valid modifiers for top-level interfaces.Represents the interfaceType
.static final Type[]
Immutable array of length 0.Represents the primitive typevoid
.Fields inherited from interface de.grogra.reflect.Member
ABSTRACT, ACCESS_MODIFIERS, ARRAY, BRIDGE, CONSTANT, FINAL, INTERFACE, JAVA_MODIFIERS, LOCAL_CLASS, MIN_UNUSED_MODIFIER, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT, SYNCHRONIZED, SYNTHETIC, TRANSIENT, VARARGS, VOLATILE
-
Method Summary
Modifier and TypeMethodDescriptioncloneObject
(T o, boolean deep) createArray
(int length) Type<?>
Type<?>
getDeclaredField
(int index) int
Type<?>
getDeclaredInterface
(int index) int
getDeclaredMethod
(int index) int
Type<?>
getDeclaredType
(int index) int
getDefaultElementValue
(String name) int
Returns the type id of this type.boolean
isInstance
(Object object) boolean
Methods inherited from interface de.grogra.reflect.Member
getDeclaredAnnotation, getDeclaredAnnotationCount, getDeclaringType, getDescriptor, getModifiers, getName, getSimpleName
-
Field Details
-
TOP_LEVEL_CLASS_MODIFIERS
static final int TOP_LEVEL_CLASS_MODIFIERSMask representing the valid modifiers for top-level classes.- See Also:
-
MEMBER_CLASS_MODIFIERS
static final int MEMBER_CLASS_MODIFIERSMask representing the valid modifiers for member classes.- See Also:
-
LOCAL_CLASS_MODIFIERS
static final int LOCAL_CLASS_MODIFIERSMask representing the valid modifiers for local classes.- See Also:
-
TOP_LEVEL_INTERFACE_MODIFIERS
static final int TOP_LEVEL_INTERFACE_MODIFIERSMask representing the valid modifiers for top-level interfaces.- See Also:
-
MEMBER_INTERFACE_MODIFIERS
static final int MEMBER_INTERFACE_MODIFIERSMask representing the valid modifiers for member interfaces.- See Also:
-
TYPE_0
Immutable array of length 0. -
NUMERIC
Base type for all primitive numeric types. -
INTEGRAL
Direct supertype for primitive integral types. -
FLOATING_POINT
Direct supertype for primitive floating-point types. -
OBJECT
Represents the classObject
. -
CLASS
Represents the classClass
. -
TYPE
Represents the interfaceType
. -
NULL
Represents the null type of the Java programming language. -
VOID
Represents the primitive typevoid
. -
BOOLEAN
Represents the primitive typeboolean
. -
BYTE
Represents the primitive typebyte
. The direct supertype isINTEGRAL
. -
SHORT
Represents the primitive typeshort
. The direct supertype isINTEGRAL
. -
CHAR
Represents the primitive typechar
. The direct supertype isINTEGRAL
. -
INT
Represents the primitive typeint
. The direct supertype isINTEGRAL
. -
LONG
Represents the primitive typelong
. The direct supertype isINTEGRAL
. -
FLOAT
Represents the primitive typefloat
. The direct supertype isFLOATING_POINT
. -
DOUBLE
Represents the primitive typedouble
. The direct supertype isFLOATING_POINT
. -
INVALID
Represents an invalid type. -
STRING
Represents the classString
. -
TEXTAREA
Represents the classString
. -
NUMBER
Represents the classNumber
.
-
-
Method Details
-
getTypeId
int getTypeId()Returns the type id of this type.- Returns:
- this type's type id
- See Also:
-
getPackage
String getPackage() -
getBinaryName
String getBinaryName() -
isInstance
-
getImplementationClass
-
getTypeLoader
TypeLoader getTypeLoader() -
getSupertype
-
getDeclaredInterfaceCount
int getDeclaredInterfaceCount() -
getDeclaredInterface
-
getDeclaredFieldCount
int getDeclaredFieldCount() -
getDeclaredField
-
getDeclaredTypeCount
int getDeclaredTypeCount() -
getDeclaredType
-
getDeclaredMethodCount
int getDeclaredMethodCount() -
getDeclaredMethod
-
getComponentType
Type<?> getComponentType() -
getArrayType
Type<?> getArrayType() -
getDefaultElementValue
-
createArray
-
cloneObject
- Throws:
CloneNotSupportedException
-
isStringSerializable
boolean isStringSerializable() -
valueOf
-
newInstance
-
getLookup
Lookup getLookup()
-