Package eu.bandm.tools.lljava.codec
Class Decoder
java.lang.Object
eu.bandm.tools.lljava.codec.Decoder
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
protected static interface
protected class
protected static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected LLJava.ReferenceTypeExpr
arrayClassRef
(int index) protected LLJava.ClassReference
classRef
(boolean optional, int index) protected LLJava.QualId
classRefName
(boolean optional, int index) decode
(InputStream in) protected void
protected void
protected LLJava.Class
protected void
protected void
protected void
protected void
protected LLJava.Field
protected LLJava.TypeExpr
protected LLJava.TypeExpr
decodeFieldDescriptor
(String text) protected LLJava.HandleKind
decodeHandleKind
(byte kind) protected void
protected LLJava.Method
protected List<LLJava.TypeExpr>
protected LLJava.ResultExpr
protected void
protected void
deferInvokeDynamic
(int index, int bootstrapMethodIndex, int nameAndTypeIndex) protected void
protected LLJava.FieldReference
fieldRef
(int index) protected LLJava.AbstractMethodRef
getAbstractMethodRef
(int index) protected LLJava.ClassRef
getClassRef
(int index) protected LLJava.FieldRef
getFieldRef
(int index) protected LLJava.NameAndType
getNameAndType
(int index) protected LLJava.ConstantUTF8
getUtf8
(int index) protected LLJava.Id
protected LLJava.MethodReference
invokeDynamic
(int index) protected <A extends LLJava.ConstantPoolEntry,
B extends LLJava.ConstantPoolEntry>
Decoder.LazyPoolEntrylazy
(BiFunction<? super A, ? super B, ? extends LLJava.ConstantPoolEntry> fun, Class<A> type1, Class<B> type2) protected <A extends LLJava.ConstantPoolEntry>
Decoder.LazyPoolEntrylazy
(Function<? super A, ? extends LLJava.ConstantPoolEntry> fun, Class<A> type1) protected <A> List<A>
list
(Decoder.IOSupplier<? extends A> body) protected LLJava.Literal
literal
(int index) protected LLJava.Literal
literal
(LLJava.Loadable entry) protected LLJava.LoadableExpr
loadable
(int index) protected LLJava.LoadableExpr
loadable
(LLJava.Loadable entry) static void
protected LLJava.MethodReference
methodRef
(int index) protected Set<LLJava.Modifier>
modifiers
(Map<LLJava.Modifier, Integer> map, int accessFlags) protected LLJava.QualId
protected LLJava.MethodReference
protected LLJava.FieldReference
unparse
(LLJava.FieldRef ref)
-
Field Details
-
signatureParser
-
-
Constructor Details
-
Decoder
public Decoder()
-
-
Method Details
-
decode
- Throws:
IOException
-
decodeHead
- Throws:
IOException
-
decodeConstantPool
- Throws:
IOException
-
lazy
protected <A extends LLJava.ConstantPoolEntry> Decoder.LazyPoolEntry lazy(Function<? super A, ? extends LLJava.ConstantPoolEntry> fun, Class<A> type1) throws IOException- Throws:
IOException
-
lazy
protected <A extends LLJava.ConstantPoolEntry,B extends LLJava.ConstantPoolEntry> Decoder.LazyPoolEntry lazy(BiFunction<? super A, ? super B, throws IOException? extends LLJava.ConstantPoolEntry> fun, Class<A> type1, Class<B> type2) - Throws:
IOException
-
deferInvokeDynamic
protected void deferInvokeDynamic(int index, int bootstrapMethodIndex, int nameAndTypeIndex) -
decodeHandleKind
-
getUtf8
-
getClassRef
-
getFieldRef
-
getAbstractMethodRef
-
getNameAndType
-
list
- Throws:
IOException
-
decodeClass
- Throws:
IOException
-
classRef
- Throws:
IOException
-
arrayClassRef
- Throws:
IOException
-
classRefName
- Throws:
IOException
-
fieldRef
-
unparse
-
methodRef
-
unparse
-
invokeDynamic
-
decodeField
- Throws:
IOException
-
decodeMethod
- Throws:
IOException
-
decodeAttributes
- Throws:
IOException
-
decodeConstantValueAttribute
- Throws:
IOException
-
decodeExceptionsAttribute
- Throws:
IOException
-
decodeCodeAttribute
- Throws:
IOException
-
decodeSignatureAttribute
- Throws:
IOException
-
decodeBootstrapMethodsAttribute
- Throws:
IOException
-
modifiers
-
qualId
-
id
-
loadable
-
loadable
-
literal
-
literal
-
decodeFieldDescriptor
-
decodeFieldDescriptor
-
decodeMethodDescriptorResult
-
decodeMethodDescriptorParameters
-
error
-
main
- Throws:
IOException
-