FindBugs™ 1.3.9

edu.umd.cs.findbugs.ba.bcp
Class FieldVariable

java.lang.Object
  extended by edu.umd.cs.findbugs.ba.bcp.FieldVariable
All Implemented Interfaces:
Variable

public class FieldVariable
extends java.lang.Object
implements Variable


Constructor Summary
FieldVariable(java.lang.String className, java.lang.String fieldName, java.lang.String fieldSig)
          Constructor for static fields.
FieldVariable(ValueNumber ref, java.lang.String className, java.lang.String fieldName, java.lang.String fieldSig)
          Constructor for instance fields.
 
Method Summary
 java.lang.String getClassName()
          Get the class name.
 java.lang.String getFieldName()
          Get the field name.
 java.lang.String getFieldSig()
          Get the field signature.
 boolean isStatic()
          Return whether or not this is a static field.
 boolean sameAs(Variable other)
          Determine if the given Variable is the same as this one.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldVariable

public FieldVariable(java.lang.String className,
                     java.lang.String fieldName,
                     java.lang.String fieldSig)
Constructor for static fields.

Parameters:
className - the class name
fieldName - the field name
fieldSig - the field signature

FieldVariable

public FieldVariable(@Nullable
                     ValueNumber ref,
                     java.lang.String className,
                     java.lang.String fieldName,
                     java.lang.String fieldSig)
Constructor for instance fields.

Parameters:
ref - ValueNumber of the object reference
className - the class name
fieldName - the field name
fieldSig - the field signature
Method Detail

isStatic

public boolean isStatic()
Return whether or not this is a static field.


getClassName

public java.lang.String getClassName()
Get the class name.


getFieldName

public java.lang.String getFieldName()
Get the field name.


getFieldSig

public java.lang.String getFieldSig()
Get the field signature.


sameAs

public boolean sameAs(Variable other)
Description copied from interface: Variable
Determine if the given Variable is the same as this one.

Specified by:
sameAs in interface Variable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

FindBugs™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.