public class Input extends Object implements Constants, AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
Pool |
constants |
char |
major |
char |
minor |
AE_CNST, AE_CNST_W, AE_CNST2_W, AE_FIELDREF, AE_I_D0, AE_I_D1, AE_I_F0, AE_I_F1, AE_I_F2, AE_I_I0, AE_I_I1, AE_I_I2, AE_I_I3, AE_I_I4, AE_I_I5, AE_I_IML, AE_I_L0, AE_I_L1, AE_I_LAST, AE_I_NULL, AE_IFMETHOD, AE_METHODREF, AE_REFTYPEREF, AE_S1, AE_S2, AE_U1, AE_U2, AE_U4, BRANCH, BYTE, CNST, CONSTANT_CLASS, CONSTANT_DOUBLE, CONSTANT_FIELDREF, CONSTANT_FLOAT, CONSTANT_INTEGER, CONSTANT_INTERFACEMETHODREF, CONSTANT_LONG, CONSTANT_METHODREF, CONSTANT_NAMEANDTYPE, CONSTANT_STRING, CONSTANT_UTF8, ERROR_STACK, FIELDREF, GETFIELD_STACK, GETSTATIC_STACK, IFMETHOD, IMPLICIT, INC, INVOKEINTERFACE_STACK, INVOKESPECIAL_STACK, INVOKESTATIC_STACK, INVOKEVIRTUAL_STACK, LDC_STACK, LS, LV, MAGIC, METHODREF, MULTIARRAY_STACK, PUTFIELD_STACK, PUTSTATIC_STACK, REFTYPEREF, RT, SIMPLE, SUCC_BRANCH, SUCC_GOTO, SUCC_JSR, SUCC_LOOKUPSWITCH, SUCC_NEXT, SUCC_NONE, SUCC_RET, SUCC_TABLESWITCH, T_BOOLEAN, T_BYTE, T_CHAR, T_DOUBLE, T_FLOAT, T_INT, T_LONG, T_REFERENCE, T_SHORT, T_VOID, TS, TYPE_BYTE, VBRANCH| Constructor and Description |
|---|
Input(InputStream src) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeCode() |
int |
findConstant(Object obj) |
int |
getOfs()
Undefined when not in code context.
|
static ClassDef |
load(net.oneandone.sushi.fs.Node node) |
void |
openCode(Code code) |
void |
read(byte[] buffer) |
MethodRef |
readClassMethodRef() |
ClassRef |
readClassRef() |
Object |
readConstant() |
double |
readDouble() |
int |
readEndIdxOrLast(int startIdx) |
FieldRef |
readFieldRef() |
float |
readFloat() |
int |
readIdx() |
int |
readIdxOrLast() |
int |
readInt() |
MethodRef |
readInterfaceMethodRef() |
long |
readLong() |
void |
readPad() |
int |
readS1() |
int |
readS2() |
Object |
readShortConstant() |
String |
readString() |
int |
readU1() |
char |
readU2() |
int |
readU4() |
String |
readUtf8() |
void |
requireCode() |
public char minor
public char major
public Pool constants
public Input(InputStream src) throws IOException
IOExceptionpublic static ClassDef load(net.oneandone.sushi.fs.Node node) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface AutoCloseableIOExceptionpublic void openCode(Code code)
public void closeCode()
public void requireCode()
public int readIdx()
throws IOException
IOExceptionpublic int readIdxOrLast()
throws IOException
IOExceptionpublic int readEndIdxOrLast(int startIdx)
throws IOException
IOExceptionpublic int getOfs()
public void read(byte[] buffer)
throws IOException
IOExceptionpublic int readU1()
throws IOException
IOExceptionpublic int readS1()
throws IOException
IOExceptionpublic char readU2()
throws IOException
IOExceptionpublic int readS2()
throws IOException
IOExceptionpublic int readU4()
throws IOException
IOExceptionpublic ClassRef readClassRef() throws IOException
IOExceptionpublic FieldRef readFieldRef() throws IOException
IOExceptionpublic MethodRef readClassMethodRef() throws IOException
IOExceptionpublic MethodRef readInterfaceMethodRef() throws IOException
IOExceptionpublic String readString() throws IOException
IOExceptionpublic int readInt()
throws IOException
IOExceptionpublic float readFloat()
throws IOException
IOExceptionpublic long readLong()
throws IOException
IOExceptionpublic double readDouble()
throws IOException
IOExceptionpublic String readUtf8() throws IOException
IOExceptionpublic Object readConstant() throws IOException
IOExceptionpublic Object readShortConstant() throws IOException
IOExceptionpublic void readPad()
throws IOException
IOExceptionpublic int findConstant(Object obj)
Copyright © 1998–2017 1&1. All rights reserved.