Class OpcodeStack.Item

  • Enclosing class:
    OpcodeStack

    public static class OpcodeStack.Item
    extends java.lang.Object
    • Constructor Detail

      • Item

        public Item​(java.lang.String signature,
                    int constValue)
      • Item

        public Item​(java.lang.String signature)
      • Item

        public Item​(java.lang.String signature,
                    FieldAnnotation f,
                    int fieldLoadedFromRegister)
      • Item

        public Item​(java.lang.String signature,
                    java.lang.Object constantValue)
      • Item

        public Item()
    • Method Detail

      • makeCrossMethod

        public void makeCrossMethod()
      • getSize

        public int getSize()
      • getPC

        public int getPC()
      • setPC

        public void setPC​(int pc)
      • isWide

        public boolean isWide()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

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

        public int getFieldLoadedFromRegister()
      • setLoadedFromField

        public void setLoadedFromField​(XField f,
                                       int fieldLoadedFromRegister)
      • getHttpParameterName

        @CheckForNull
        public java.lang.String getHttpParameterName()
      • getInjectionPC

        public int getInjectionPC()
      • nullItem

        public static OpcodeStack.Item nullItem​(java.lang.String signature)
      • getJavaClass

        @CheckForNull
        public org.apache.bcel.classfile.JavaClass getJavaClass()
                                                         throws java.lang.ClassNotFoundException
        Returns null for primitive and arrays
        Throws:
        java.lang.ClassNotFoundException
      • isArray

        public boolean isArray()
      • getElementSignature

        @Deprecated
        public java.lang.String getElementSignature()
        Deprecated.
      • isNonNegative

        public boolean isNonNegative()
      • isPrimitive

        public boolean isPrimitive()
      • getRegisterNumber

        public int getRegisterNumber()
      • getSignature

        public java.lang.String getSignature()
      • getConstant

        public java.lang.Object getConstant()
        Returns a constant value for this Item, if known. NOTE: if the value is a constant Class object, the constant value returned is the name of the class.
      • getFieldAnnotation

        @Deprecated
        public FieldAnnotation getFieldAnnotation()
        Deprecated.
        Use getXField instead
      • getXField

        public XField getXField()
      • setSpecialKind

        public void setSpecialKind​(@SpecialKind
                                   int specialKind)
        Parameters:
        specialKind - The specialKind to set.
      • getSpecialKind

        @SpecialKind
        public int getSpecialKind()
        Returns:
        Returns the specialKind.
      • isBooleanNullnessValue

        public boolean isBooleanNullnessValue()
        Returns:
        Returns the specialKind.
      • setUserValue

        public void setUserValue​(java.lang.Object value)
        attaches a detector specified value to this item
        Parameters:
        value - the custom value to set
      • getReturnValueOf

        @CheckForNull
        public XMethod getReturnValueOf()
        Returns:
        if this value is the return value of a method, give the method invoked
      • couldBeZero

        public boolean couldBeZero()
      • mustBeZero

        public boolean mustBeZero()
      • getUserValue

        public java.lang.Object getUserValue()
        gets the detector specified value for this item
        Returns:
        the custom value
      • isServletParameterTainted

        public boolean isServletParameterTainted()
      • setServletParameterTainted

        public void setServletParameterTainted()
      • valueCouldBeNegative

        public boolean valueCouldBeNegative()
      • checkForIntegerMinValue

        public boolean checkForIntegerMinValue()
      • isInitialParameter

        public boolean isInitialParameter()
        Returns:
        Returns the isInitialParameter.
      • isNull

        public boolean isNull()
        Returns:
        Returns the isNull.
      • clearNewlyAllocated

        public void clearNewlyAllocated()
      • isNewlyAllocated

        public boolean isNewlyAllocated()
      • hasConstantValue

        public boolean hasConstantValue​(int value)
        Parameters:
        i -
        Returns:
      • hasConstantValue

        public boolean hasConstantValue​(long value)