public class PoolingABCVisitor extends Object implements IABCVisitor
| Modifier and Type | Class and Description |
|---|---|
protected class |
PoolingABCVisitor.ClassVisitor
Class Visitor that adds itself to the list
of defined classes
|
| Constructor and Description |
|---|
PoolingABCVisitor() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getClassId(ClassInfo info) |
List<PoolingABCVisitor.ClassVisitor> |
getDefinedClasses()
Get a list of the defined classes
|
Pool<Double> |
getDoublePool()
double pool, has default zero entry.
|
Pool<Integer> |
getIntPool()
int pool, has default zero entry.
|
int |
getMajorVersion()
Major version of the ABC
|
Pool<Metadata> |
getMetadataPool()
metadata pool, does not have default zero entry.
|
List<MethodBodyInfo> |
getMethodBodies()
Get a list of the method bodies
|
protected MethodBodyInfo |
getMethodBodyForMethodInfo(MethodInfo mi)
Get the corresponding MethodBodyInfo for a given MethodInfo
|
EntryOrderedStore<MethodInfo> |
getMethodInfos()
Get a list of the method infos
|
int |
getMinorVersion()
Minor version of the ABC
|
Pool<Name> |
getNamePool()
Name pool, has default zero entry.
|
Pool<Namespace> |
getNsPool()
namespace pool, has default zero entry.
|
Pool<Nsset> |
getNssetPool()
namespace set pool, has default zero entry.
|
List<ScriptInfo> |
getScriptInfos()
Get a list of the ScriptInfos
|
Pool<String> |
getStringPool()
String pool, has default zero entry.
|
Pool<Long> |
getUintPool()
uint pool, has default zero entry.
|
void |
visit(int majorVersion,
int minorVersion) |
IClassVisitor |
visitClass(InstanceInfo iinfo,
ClassInfo cinfo)
Visit a class.
|
void |
visitEnd()
Indicates that no further method calls will be made on this visitor
instance.
|
IMethodVisitor |
visitMethod(MethodInfo minfo)
Visit a method.
|
void |
visitPooledDouble(Double d)
Visit a pooled double value.
|
void |
visitPooledInt(Integer i)
Visit a pooled integer value.
|
void |
visitPooledMetadata(Metadata md)
Visit a pooled metadata value.
|
void |
visitPooledName(Name n)
Visit a pooled name value.
|
void |
visitPooledNamespace(Namespace ns)
Visit a pooled namespace value.
|
void |
visitPooledNsSet(Nsset nss)
Visit a pooled namespace set value.
|
void |
visitPooledString(String s)
Visit a pooled string value.
|
void |
visitPooledUInt(Long l)
Visit a pooled unsigned integer value.
|
IScriptVisitor |
visitScript()
Visit a script.
|
public void visit(int majorVersion,
int minorVersion)
visit in interface IABCVisitorpublic IScriptVisitor visitScript()
IABCVisitorvisitScript in interface IABCVisitorpublic IClassVisitor visitClass(InstanceInfo iinfo, ClassInfo cinfo)
IABCVisitorvisitClass in interface IABCVisitoriinfo - - the class' instance info.cinfo - - the class' class info.public IMethodVisitor visitMethod(MethodInfo minfo)
IABCVisitorvisitMethod in interface IABCVisitorminfo - - the Method's method info.public void visitPooledDouble(Double d)
IABCVisitorvisitPooledDouble in interface IABCVisitorpublic void visitPooledInt(Integer i)
IABCVisitorvisitPooledInt in interface IABCVisitorpublic void visitPooledMetadata(Metadata md)
IABCVisitorvisitPooledMetadata in interface IABCVisitorpublic void visitPooledName(Name n)
IABCVisitorvisitPooledName in interface IABCVisitorpublic void visitPooledNamespace(Namespace ns)
IABCVisitorvisitPooledNamespace in interface IABCVisitorpublic void visitPooledNsSet(Nsset nss)
IABCVisitorvisitPooledNsSet in interface IABCVisitorpublic void visitPooledString(String s)
IABCVisitorvisitPooledString in interface IABCVisitorpublic void visitPooledUInt(Long l)
IABCVisitorvisitPooledUInt in interface IABCVisitorpublic int getMajorVersion()
public int getMinorVersion()
public Pool<Metadata> getMetadataPool()
public List<ScriptInfo> getScriptInfos()
public List<MethodBodyInfo> getMethodBodies()
public EntryOrderedStore<MethodInfo> getMethodInfos()
public List<PoolingABCVisitor.ClassVisitor> getDefinedClasses()
protected int getClassId(ClassInfo info)
IllegalArgumentException - if the class is not found.protected MethodBodyInfo getMethodBodyForMethodInfo(MethodInfo mi)
mi - the MethodInfo you want the body forCopyright © 2016 The Apache Software Foundation. All rights reserved.