Contents | Prev | Next


JavaTM Core Reflection

API and Specification

February 4, 1997



Overview
Applications
Reflection Model
Member Interface
Field Objects
Method Objects
Constructor Objects
Array and Modifier Classes
Representation of Primitive Java Types
Security Model
Java Language Policy
JDK 1.1 Security Policy
Data Conversions
Wrapping and Unwrapping Conversions
Widening Conversions
Packaging

The class java.lang.Class
Methods
toString
forName
newInstance
isInstance
isAssignableFrom
isInterface
isArray
isPrimitive
getName
getModifiers
getClassLoader
getSuperclass
getInterfaces
getComponentType
getDeclaringClass
getClasses
getFields
getMethods
getConstructors
getField
getMethod
getConstructor
getDeclaredClasses
getDeclaredFields
getDeclaredMethods
getDeclaredConstructors
getDeclaredField
getDeclaredMethod
getDeclaredConstructor

The interface java.lang.reflect.Member
Fields
PUBLIC
DECLARED
Methods
getDeclaringClass
getName
getModifiers

The class java.lang.reflect.Field
Methods
getDeclaringClass
getName
getModifiers
getType
equals
hashCode
toString
get
getBoolean
getByte
getChar
getShort
getInt
getLong
getFloat
getDouble
set
setBoolean
setByte
setChar
setShort
setInt
setLong
setFloat
setDouble

The class java.lang.reflect.Method
Methods
getDeclaringClass
getName
getModifiers
getReturnType
getParameterTypes
getExceptionTypes
equals
hashCode
toString
invoke

The class java.lang.reflect.Constructor
Methods
getDeclaringClass
getName
getModifiers
getParameterTypes
getExceptionTypes
equals
hashCode
toString
newInstance

The class java.lang.reflect.Array
Methods
newInstance
newInstance
getLength
get
getBoolean
getByte
getChar
getShort
getInt
getLong
getFloat
getDouble
set
setBoolean
setByte
setChar
setShort
setInt
setLong
setFloat
setDouble

The class java.lang.reflect.Modifier
Fields
PUBLIC
PRIVATE
PROTECTED
STATIC
FINAL
SYNCHRONIZED
VOLATILE
TRANSIENT
NATIVE
INTERFACE
ABSTRACT
Methods
isPublic
isPrivate
isProtected
isStatic
isFinal
isSynchronized
isVolatile
isTransient
isNative
isInterface
isAbstract
toString

The class java.lang.reflect.InvocationTargetException
Constructors
InvocationTargetException
InvocationTargetException
Methods
getTargetException

Acknowledgements
References


Contents | Prev | Next
Copyright © 1996, 1997 Sun Microsystems, Inc. All rights reserved.