edu.umd.cs.findbugs

Class OpcodeStack.Item

public static class OpcodeStack.Item extends Object

Field Summary
static intAVERAGE_COMPUTED_USING_DIVISION
static intFILE_SEPARATOR_STRING
static intFLOAT_MATH
static intHASHCODE_INT
static intHASHCODE_INT_REMAINDER
static intINTEGER_SUM
static intLOW_8_BITS_CLEAR
static intMASKED_NON_NEGATIVE
static intMATH_ABS
static intNASTY_FLOAT_MATH
static intRANDOM_INT
static intRANDOM_INT_REMAINDER
static intSIGNED_BYTE
static ObjectUNKNOWN
Constructor Summary
Item(String signature, int constValue)
Item(String signature)
Item(OpcodeStack.Item it)
Item(OpcodeStack.Item it, int reg)
Item(String signature, FieldAnnotation f)
Item(String signature, FieldAnnotation f, int fieldLoadedFromRegister)
Item(String signature, Object constantValue)
Item()
Method Summary
booleancouldBeZero()
ObjectgetConstant()
StringgetElementSignature()
intgetFieldLoadedFromRegister()
JavaClassgetJavaClass()
intgetRegisterNumber()
StringgetSignature()
intgetSize()
intgetSpecialKind()
ObjectgetUserValue()
gets the detector specified value for this item
XFieldgetXField()
booleanisArray()
booleanisInitialParameter()
booleanisNonNegative()
booleanisNull()
booleanisPrimitive()
static OpcodeStack.Itemmerge(OpcodeStack.Item i1, OpcodeStack.Item i2)
booleanmustBeZero()
voidsetSpecialKind(int specialKind)
voidsetUserValue(Object value)
attaches a detector specified value to this item
booleanvalueCouldBeNegative()

Field Detail

AVERAGE_COMPUTED_USING_DIVISION

public static final int AVERAGE_COMPUTED_USING_DIVISION

FILE_SEPARATOR_STRING

public static final int FILE_SEPARATOR_STRING

FLOAT_MATH

public static final int FLOAT_MATH

HASHCODE_INT

public static final int HASHCODE_INT

HASHCODE_INT_REMAINDER

public static final int HASHCODE_INT_REMAINDER

INTEGER_SUM

public static final int INTEGER_SUM

LOW_8_BITS_CLEAR

public static final int LOW_8_BITS_CLEAR

MASKED_NON_NEGATIVE

public static final int MASKED_NON_NEGATIVE

MATH_ABS

public static final int MATH_ABS

NASTY_FLOAT_MATH

public static final int NASTY_FLOAT_MATH

RANDOM_INT

public static final int RANDOM_INT

RANDOM_INT_REMAINDER

public static final int RANDOM_INT_REMAINDER

SIGNED_BYTE

public static final int SIGNED_BYTE

UNKNOWN

public static final Object UNKNOWN

Constructor Detail

Item

public Item(String signature, int constValue)

Item

public Item(String signature)

Item

public Item(OpcodeStack.Item it)

Item

public Item(OpcodeStack.Item it, int reg)

Item

public Item(String signature, FieldAnnotation f)

Item

public Item(String signature, FieldAnnotation f, int fieldLoadedFromRegister)

Item

public Item(String signature, Object constantValue)

Item

public Item()

Method Detail

couldBeZero

public boolean couldBeZero()

getConstant

public Object getConstant()

getElementSignature

public String getElementSignature()

getFieldLoadedFromRegister

public int getFieldLoadedFromRegister()

getJavaClass

public JavaClass getJavaClass()

getRegisterNumber

public int getRegisterNumber()

getSignature

public String getSignature()

getSize

public int getSize()

getSpecialKind

public int getSpecialKind()

Returns: Returns the specialKind.

getUserValue

public Object getUserValue()
gets the detector specified value for this item

Returns: the custom value

getXField

public XField getXField()

isArray

public boolean isArray()

isInitialParameter

public boolean isInitialParameter()

Returns: Returns the isInitialParameter.

isNonNegative

public boolean isNonNegative()

isNull

public boolean isNull()

Returns: Returns the isNull.

isPrimitive

public boolean isPrimitive()

merge

public static OpcodeStack.Item merge(OpcodeStack.Item i1, OpcodeStack.Item i2)

mustBeZero

public boolean mustBeZero()

setSpecialKind

public void setSpecialKind(int specialKind)

Parameters: specialKind The specialKind to set.

setUserValue

public void setUserValue(Object value)
attaches a detector specified value to this item

Parameters: value the custom value to set

valueCouldBeNegative

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