- java.lang.Object
-
- kala.compress.harmony.unpack200.SegmentUtils
-
public final class SegmentUtils extends java.lang.ObjectUtility class for unpack200
-
-
Constructor Summary
Constructors Constructor Description SegmentUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcountArgs(java.lang.String descriptor)protected static intcountArgs(java.lang.String descriptor, int widthOfLongsAndDoubles)Count the number of arguments in the descriptor.static intcountBit16(int[] flags)static intcountBit16(long[] flags)static intcountBit16(long[][] flags)static intcountInvokeInterfaceArgs(java.lang.String descriptor)static intcountMatches(long[][] flags, IMatcher matcher)static intcountMatches(long[] flags, IMatcher matcher)
-
-
-
Method Detail
-
countArgs
public static int countArgs(java.lang.String descriptor)
-
countArgs
protected static int countArgs(java.lang.String descriptor, int widthOfLongsAndDoubles)Count the number of arguments in the descriptor. Each long or double counts as widthOfLongsAndDoubles; all other arguments count as 1.- Parameters:
descriptor- String for which arguments are countedwidthOfLongsAndDoubles- int increment to apply for longs doubles. This is typically 1 when counting arguments alone, or 2 when counting arguments for invokeinterface.- Returns:
- integer count
-
countBit16
public static int countBit16(int[] flags)
-
countBit16
public static int countBit16(long[] flags)
-
countBit16
public static int countBit16(long[][] flags)
-
countInvokeInterfaceArgs
public static int countInvokeInterfaceArgs(java.lang.String descriptor)
-
countMatches
public static int countMatches(long[] flags, IMatcher matcher)
-
countMatches
public static int countMatches(long[][] flags, IMatcher matcher)
-
-