edu.umd.cs.findbugs.ba.bcp

Class FieldVariable

public class FieldVariable extends Object implements Variable

Constructor Summary
FieldVariable(String className, String fieldName, String fieldSig)
Constructor for static fields.
FieldVariable(ValueNumber ref, String className, String fieldName, String fieldSig)
Constructor for instance fields.
Method Summary
StringgetClassName()
Get the class name.
StringgetFieldName()
Get the field name.
StringgetFieldSig()
Get the field signature.
booleanisStatic()
Return whether or not this is a static field.
booleansameAs(Variable other)

Constructor Detail

FieldVariable

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

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

FieldVariable

public FieldVariable(ValueNumber ref, String className, String fieldName, 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

getClassName

public String getClassName()
Get the class name.

getFieldName

public String getFieldName()
Get the field name.

getFieldSig

public String getFieldSig()
Get the field signature.

isStatic

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

sameAs

public boolean sameAs(Variable other)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.