Class ArrayNullCheckTag

  • All Implemented Interfaces:
    OneByteCodeTag, Tag

    public class ArrayNullCheckTag
    extends Object
    implements OneByteCodeTag
    ArrayNullCheckTag combines ArrayCheckTag and NullCheckTag into one tag. It uses bits of one byte value to represent the check information. The right-most two bits stand for the array bounds checks, and the right third bit represents the null check.

    For array references, the right three bits are meaningful; for other object refrences, only null check bit should be used.

    See Also:
    ArrayCheckTag, NullCheckTag
    • Constructor Detail

      • ArrayNullCheckTag

        public ArrayNullCheckTag()
      • ArrayNullCheckTag

        public ArrayNullCheckTag​(byte v)
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: Tag
        Returns the tag name.
        Specified by:
        getName in interface Tag
      • getValue

        public byte[] getValue()
        Description copied from interface: Tag
        Returns the tag raw data.
        Specified by:
        getValue in interface Tag
      • accumulate

        public byte accumulate​(byte other)
        Accumulates another byte value by OR.