Class StackMapTableWriter
java.lang.Object
com.ibm.wala.shrike.shrikeCT.ClassWriter.Element
com.ibm.wala.shrike.shrikeCT.StackMapTableWriter
-
Constructor Summary
ConstructorDescriptionStackMapTableWriter
(ClassWriter writer, MethodData method, Compiler.Output output, ClassHierarchyProvider cha, String[][] vars) StackMapTableWriter
(ClassWriter writer, MethodData method, Compiler.Output output, ClassHierarchyProvider cha, String[][] vars, List<StackMapConstants.StackMapFrame> reuseFrames) StackMapTableWriter
(ClassWriter writer, List<StackMapConstants.StackMapFrame> frames) StackMapTableWriter
(ClassWriter w, List<StackMapConstants.StackMapFrame> sm, int[] newBytecodesToOldBytecodes) -
Method Summary
Modifier and TypeMethodDescriptionint
copyInto
(byte[] buf, int offset) Copy the bytes into 'buf' at offset 'offset'.int
getSize()
static List
<StackMapConstants.StackMapFrame> stackMapTable
(MethodData method, Compiler.Output output, ClassHierarchyProvider cha, String[][] vars, List<StackMapConstants.StackMapFrame> reuseFrames)
-
Constructor Details
-
StackMapTableWriter
public StackMapTableWriter(ClassWriter writer, List<StackMapConstants.StackMapFrame> frames) throws IOException - Throws:
IOException
-
StackMapTableWriter
public StackMapTableWriter(ClassWriter writer, MethodData method, Compiler.Output output, ClassHierarchyProvider cha, String[][] vars) throws Analyzer.FailureException, IOException - Throws:
Analyzer.FailureException
IOException
-
StackMapTableWriter
public StackMapTableWriter(ClassWriter writer, MethodData method, Compiler.Output output, ClassHierarchyProvider cha, String[][] vars, List<StackMapConstants.StackMapFrame> reuseFrames) throws Analyzer.FailureException, IOException - Throws:
Analyzer.FailureException
IOException
-
StackMapTableWriter
public StackMapTableWriter(ClassWriter w, List<StackMapConstants.StackMapFrame> sm, int[] newBytecodesToOldBytecodes) throws IOException - Throws:
IOException
-
-
Method Details
-
stackMapTable
public static List<StackMapConstants.StackMapFrame> stackMapTable(MethodData method, Compiler.Output output, ClassHierarchyProvider cha, String[][] vars, List<StackMapConstants.StackMapFrame> reuseFrames) throws Analyzer.FailureException - Throws:
Analyzer.FailureException
-
getSize
public int getSize()- Specified by:
getSize
in classClassWriter.Element
- Returns:
- the number of bytes that will be generated.
-
copyInto
public int copyInto(byte[] buf, int offset) Description copied from class:ClassWriter.Element
Copy the bytes into 'buf' at offset 'offset'.- Specified by:
copyInto
in classClassWriter.Element
- Returns:
- the number of bytes copies, which must be equal to getSize()
-