|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sysModel.classFile.constantPool.visitors.ADefaultPoolInfoVisitor<java.lang.Integer,java.lang.Object> sysModel.classFile.constantPool.visitors.GetPoolInfoSizeVisitor
public class GetPoolInfoSizeVisitor
Return the size of the info in the constant pool. Double and long use two entries, all others use one.
Field Summary | |
---|---|
private static GetPoolInfoSizeVisitor |
_instance
Singleton instance. |
Constructor Summary | |
---|---|
private |
GetPoolInfoSizeVisitor()
Singleton constructor. |
Method Summary | |
---|---|
java.lang.Integer |
defaultCase(APoolInfo host,
java.lang.Object o)
All other cases return 1. |
java.lang.Integer |
doubleCase(DoublePoolInfo host,
java.lang.Object o)
Returns 2. |
java.lang.Integer |
longCase(LongPoolInfo host,
java.lang.Object o)
Returns 2 |
static GetPoolInfoSizeVisitor |
singleton()
Singleton accessor. |
Methods inherited from class sysModel.classFile.constantPool.visitors.ADefaultPoolInfoVisitor |
---|
asciizCase, classCase, emptyCase, fieldCase, floatCase, intCase, interfaceMethodCase, methodCase, nameAndTypeCase, stringCase, unicodeCase |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static GetPoolInfoSizeVisitor _instance
Constructor Detail |
---|
private GetPoolInfoSizeVisitor()
Method Detail |
---|
public static GetPoolInfoSizeVisitor singleton()
public java.lang.Integer defaultCase(APoolInfo host, java.lang.Object o)
defaultCase
in class ADefaultPoolInfoVisitor<java.lang.Integer,java.lang.Object>
host
- one-slot hosto
- not used
public java.lang.Integer longCase(LongPoolInfo host, java.lang.Object o)
longCase
in interface IPoolInfoVisitor<java.lang.Integer,java.lang.Object>
longCase
in class ADefaultPoolInfoVisitor<java.lang.Integer,java.lang.Object>
host
- long infoo
- not used
public java.lang.Integer doubleCase(DoublePoolInfo host, java.lang.Object o)
doubleCase
in interface IPoolInfoVisitor<java.lang.Integer,java.lang.Object>
doubleCase
in class ADefaultPoolInfoVisitor<java.lang.Integer,java.lang.Object>
host
- double infoo
- not used
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |