Package com.ibm.wala.shrikeCT
Class StackMapTableWriter
- java.lang.Object
-
- com.ibm.wala.shrikeCT.ClassWriter.Element
-
- com.ibm.wala.shrikeCT.StackMapTableWriter
-
public class StackMapTableWriter extends ClassWriter.Element
-
-
Constructor Summary
Constructors Constructor Description StackMapTableWriter(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
copyInto(byte[] buf, int offset)
Copy the bytes into 'buf' at offset 'offset'.int
getSize()
static List<StackMapConstants.StackMapFrame>
stackMapTable(ClassWriter writer, MethodData method, Compiler.Output output, ClassHierarchyProvider cha, String[][] vars, List<StackMapConstants.StackMapFrame> reuseFrames)
-
-
-
Constructor Detail
-
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 Detail
-
stackMapTable
public static List<StackMapConstants.StackMapFrame> stackMapTable(ClassWriter writer, MethodData method, Compiler.Output output, ClassHierarchyProvider cha, String[][] vars, List<StackMapConstants.StackMapFrame> reuseFrames) throws Analyzer.FailureException, IOException
- Throws:
Analyzer.FailureException
IOException
-
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()
-
-