| Modifier and Type | Class and Description |
|---|---|
class |
Segment.ArrayVisitor |
static class |
Segment.PassException
Exception indicating that the class currently being visited contains an unknown attribute, which means that by
default the class file needs to be passed through as-is in the file_bands rather than being packed with pack200.
|
class |
Segment.SegmentAnnotationVisitor
SegmentAnnotationVisitor implements
AnnotationVisitor to visit Annotations found in a class file. |
class |
Segment.SegmentFieldVisitor
SegmentFieldVisitor implements
FieldVisitor to visit the metadata relating to fields in a class
file. |
class |
Segment.SegmentMethodVisitor
This class implements MethodVisitor to visit the contents and metadata related to methods in a class file.
|
| Constructor and Description |
|---|
Segment() |
| Modifier and Type | Method and Description |
|---|---|
AttributeDefinitionBands |
getAttrBands() |
ClassBands |
getClassBands() |
CpBands |
getCpBands() |
Pack200ClassReader |
getCurrentClassReader() |
IcBands |
getIcBands() |
SegmentHeader |
getSegmentHeader() |
boolean |
lastConstantHadWideIndex() |
void |
pack(org.apache.commons.compress.harmony.pack200.Archive.SegmentUnit segmentUnit,
OutputStream out,
PackingOptions options)
The main method on Segment.
|
void |
visit(int version,
int access,
String name,
String signature,
String superName,
String[] interfaces) |
org.objectweb.asm.AnnotationVisitor |
visitAnnotation(String desc,
boolean visible) |
void |
visitAttribute(org.objectweb.asm.Attribute attribute) |
void |
visitEnd() |
org.objectweb.asm.FieldVisitor |
visitField(int flags,
String name,
String desc,
String signature,
Object value) |
void |
visitInnerClass(String name,
String outerName,
String innerName,
int flags) |
org.objectweb.asm.MethodVisitor |
visitMethod(int flags,
String name,
String desc,
String signature,
String[] exceptions) |
void |
visitOuterClass(String owner,
String name,
String desc) |
void |
visitSource(String source,
String debug) |
public Segment()
public void pack(org.apache.commons.compress.harmony.pack200.Archive.SegmentUnit segmentUnit, OutputStream out, PackingOptions options) throws IOException, Pack200Exception
segmentUnit - TODOout - the OutputStream to write the packed Segment tooptions - packing optionsIOException - If an I/O error occurs.Pack200Exception - TODOpublic void visit(int version, int access, String name, String signature, String superName, String[] interfaces)
visit in interface org.objectweb.asm.ClassVisitorpublic void visitSource(String source, String debug)
visitSource in interface org.objectweb.asm.ClassVisitorpublic void visitOuterClass(String owner, String name, String desc)
visitOuterClass in interface org.objectweb.asm.ClassVisitorpublic org.objectweb.asm.AnnotationVisitor visitAnnotation(String desc, boolean visible)
visitAnnotation in interface org.objectweb.asm.ClassVisitorpublic void visitAttribute(org.objectweb.asm.Attribute attribute)
visitAttribute in interface org.objectweb.asm.ClassVisitorpublic void visitInnerClass(String name, String outerName, String innerName, int flags)
visitInnerClass in interface org.objectweb.asm.ClassVisitorpublic org.objectweb.asm.FieldVisitor visitField(int flags, String name, String desc, String signature, Object value)
visitField in interface org.objectweb.asm.ClassVisitorpublic org.objectweb.asm.MethodVisitor visitMethod(int flags, String name, String desc, String signature, String[] exceptions)
visitMethod in interface org.objectweb.asm.ClassVisitorpublic void visitEnd()
visitEnd in interface org.objectweb.asm.ClassVisitorpublic ClassBands getClassBands()
public boolean lastConstantHadWideIndex()
public CpBands getCpBands()
public SegmentHeader getSegmentHeader()
public AttributeDefinitionBands getAttrBands()
public IcBands getIcBands()
public Pack200ClassReader getCurrentClassReader()
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.