org.jboss.reflect.spi
Interface FieldInfo

All Superinterfaces:
AnnotatedInfo, Cloneable, org.jboss.util.JBossInterface, MemberInfo, ModifierInfo
All Known Implementing Classes:
FieldInfoImpl, JavassistFieldInfo, ReflectFieldInfoImpl

public interface FieldInfo
extends AnnotatedInfo, MemberInfo

A field info

Author:
Bill Burke, Adrian Brock

Field Summary
 
Fields inherited from interface org.jboss.reflect.spi.ModifierInfo
ABSTRACT, CONSTANT, FINAL, PACKAGE, PACKAGE_ABSTRACT, PACKAGE_CONSTANT, PACKAGE_STATIC, PRIVATE, PRIVATE_CONSTANT, PRIVATE_STATIC, PROTECTED, PROTECTED_ABSTRACT, PROTECTED_CONSTANT, PROTECTED_STATIC, PUBLIC, PUBLIC_ABSTRACT, PUBLIC_CONSTANT, PUBLIC_STATIC, STATIC
 
Method Summary
 Object get(Object target)
          Get the value of the field
 String getName()
          Get the name
 TypeInfo getType()
          Get the field type
 Object set(Object target, Object value)
          Set the value of the field
 
Methods inherited from interface org.jboss.reflect.spi.AnnotatedInfo
getAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent
 
Methods inherited from interface org.jboss.util.JBossInterface
clone, toShortString, toShortString
 
Methods inherited from interface org.jboss.reflect.spi.MemberInfo
getDeclaringClass
 
Methods inherited from interface org.jboss.reflect.spi.ModifierInfo
getModifiers, isPublic, isStatic, isVolatile
 

Method Detail

getName

String getName()
Get the name

Returns:
the field name

getType

TypeInfo getType()
Get the field type

Returns:
the field type

get

Object get(Object target)
           throws Throwable
Get the value of the field

Parameters:
target - the target
Returns:
the field value
Throws:
Throwable - for any error

set

Object set(Object target,
           Object value)
           throws Throwable
Set the value of the field

Parameters:
target - the target
value - the value
Returns:
null
Throws:
Throwable - for any error


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.