JBoss Reflection 2.2.1.SP1

org.jboss.reflect.plugins.javassist.expr
Interface FieldAccess

All Superinterfaces:
Expression

public interface FieldAccess
extends Expression

A FieldAccess.

Version:
$Revision: 1.1 $
Author:
Stale W. Pedersen

Method Summary
 String getClassName()
          Returns the name of the class in which the field is declared.
 MutableFieldInfo getField()
          Returns the field accessed by this expression.
 String getFieldName()
          Returns the name of the field.
 String getSignature()
          Returns the signature of the field type.
 boolean isReader()
          Returns true if the field is being read.
 boolean isStatic()
          Indicates whether the field is static.
 boolean isWriter()
          Returns true if the field is being written in.
 void replace(String statement)
          Replaces the method call with the bytecode derived from the given source text.
 
Methods inherited from interface org.jboss.reflect.plugins.javassist.expr.Expression
getFileName, getLineNumber, indexOfBytecode, mayThrow, replace, whereConstructor, whereMethod
 

Method Detail

isStatic

boolean isStatic()
Indicates whether the field is static.

Returns:
if the field being accessed is static

isReader

boolean isReader()
Returns true if the field is being read.

Returns:
true if this expression reads the value of a field

isWriter

boolean isWriter()
Returns true if the field is being written in.

Returns:
true if this expression writes the value of a field

getClassName

String getClassName()
Returns the name of the class in which the field is declared.

Returns:
the name of the class declaring the field

getFieldName

String getFieldName()
Returns the name of the field.

Returns:
the name of the field

getField

MutableFieldInfo getField()
                          throws NotFoundException
Returns the field accessed by this expression.

Returns:
the field accessed by this expression
Throws:
NotFoundException

getSignature

String getSignature()
Returns the signature of the field type. The signature is represented by a character string called field descriptor, which is defined in the JVM specification.

Returns:
the signature of the field being accessed

replace

void replace(String statement)
             throws CannotCompileException
Replaces the method call with the bytecode derived from the given source text.

Specified by:
replace in interface Expression
Throws:
CannotCompileException

JBoss Reflection 2.2.1.SP1

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