A B C D E F G H I L M N O P R S T W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- add(InstructionOpcode, Instruction) - Method in class de.carne.mcd.bootstrap.InstructionIndexBuilder
-
Adds an InstructionOpcode to Instruction mapping to the index.
- addExtraFields(List<String>) - Method in class de.carne.mcd.bootstrap.InstructionReferenceEntry
-
Adds an additional number of extra fields to this entry.
- addOrUpdateEntries(Iterable<T>) - Method in class de.carne.mcd.bootstrap.InstructionReference
-
Adds or updates a collection of instruction reference entries.
- addOrUpdateEntry(T) - Method in class de.carne.mcd.bootstrap.InstructionReference
-
Adds or updates an instruction reference entry.
B
- build(InstructionIndexBuilder) - Method in class de.carne.mcd.bootstrap.InstructionReference
-
Builds up the instruction index by feeding all reference entries into the given InstructionIndexBuilder instance.
- byteAt(int) - Method in class de.carne.mcd.instruction.InstructionOpcode
-
Gets the nth opcode byte.
- byteOrder() - Method in class de.carne.mcd.MachineCodeDecoder
-
Gets this MachineCodeDecoder instance's byte order.
- bytes() - Method in class de.carne.mcd.instruction.InstructionOpcode
-
Gets the byte array represented by this opcode.
C
- clear() - Method in class de.carne.mcd.io.MCDPrintBuffer
-
Clears this buffer instance.
- close() - Method in class de.carne.mcd.instruction.InstructionIndex
- close() - Method in class de.carne.mcd.PlainMCDOutput
- commit() - Method in interface de.carne.mcd.io.MCDBuffer
-
Commits any buffered data operation.
- commit() - Method in class de.carne.mcd.io.MCDInputBuffer
- commit() - Method in class de.carne.mcd.io.MCDOutputBuffer
- compareTo(byte[], int, int, byte[], int, int) - Static method in class de.carne.mcd.instruction.InstructionOpcode
- compareTo(InstructionOpcode) - Method in class de.carne.mcd.instruction.InstructionOpcode
D
- de.carne.mcd - module de.carne.mcd
-
module-info
- de.carne.mcd - package de.carne.mcd
- de.carne.mcd.bootstrap - package de.carne.mcd.bootstrap
- de.carne.mcd.instruction - package de.carne.mcd.instruction
- de.carne.mcd.io - package de.carne.mcd.io
- decode(byte[]) - Static method in class de.carne.mcd.instruction.InstructionOpcode
-
Decodes a InstructionOpcode previously encoded via InstructionOpcode.encode(int).
- decode(long, InstructionOpcode, MCDInputBuffer, MCDOutputBuffer) - Method in interface de.carne.mcd.instruction.Instruction
-
Decodes this instruction.
- decode(long, MCDInputBuffer, MCDOutputBuffer) - Method in class de.carne.mcd.instruction.InstructionIndex.LookupResult
-
Invokes the Instruction.decode(long, InstructionOpcode, MCDInputBuffer, MCDOutputBuffer) function for this lookup result.
- decode(ReadableByteChannel, MCDOutput) - Method in class de.carne.mcd.MachineCodeDecoder
-
Decodes the given byte channel's data.
- decode(ReadableByteChannel, MCDOutput, long) - Method in class de.carne.mcd.MachineCodeDecoder
-
Decodes the given byte channel's data.
- decode(ReadableByteChannel, MCDOutput, long, long) - Method in class de.carne.mcd.MachineCodeDecoder
-
Decodes the given byte channel's data.
- decode0(MCDInputBuffer, MCDOutputBuffer, long, long) - Method in class de.carne.mcd.MachineCodeDecoder
- decodeF32() - Method in class de.carne.mcd.io.MCDInputBuffer
-
Decodes a float value.
- decodeF64() - Method in class de.carne.mcd.io.MCDInputBuffer
-
Decodes a double byte value.
- decodeI16() - Method in class de.carne.mcd.io.MCDInputBuffer
-
Decodes a
shortvalue. - decodeI16Array(int) - Method in class de.carne.mcd.io.MCDInputBuffer
-
Decodes an array of
shortvalues. - decodeI32() - Method in class de.carne.mcd.io.MCDInputBuffer
-
Decodes an
intvalue. - decodeI32Array(int) - Method in class de.carne.mcd.io.MCDInputBuffer
-
Decodes an array of
intvalues. - decodeI64() - Method in class de.carne.mcd.io.MCDInputBuffer
-
Decodes a
longvalue. - decodeI64Array(int) - Method in class de.carne.mcd.io.MCDInputBuffer
-
Decodes an array of
longvalues. - decodeI8() - Method in class de.carne.mcd.io.MCDInputBuffer
-
Decodes a
bytevalue. - decodeI8Array(int) - Method in class de.carne.mcd.io.MCDInputBuffer
-
Decodes an array of
bytevalues. - decodeMagic(byte) - Method in class de.carne.mcd.io.MCDInputBuffer
-
Decodes the given magic byte.
- decodeMagic(int) - Method in class de.carne.mcd.io.MCDInputBuffer
-
Decodes the given magic dword.
- decodeMagic(long) - Method in class de.carne.mcd.io.MCDInputBuffer
-
Decodes the given magic qword.
- decodeMagic(short) - Method in class de.carne.mcd.io.MCDInputBuffer
-
Decodes the given magic word.
- decreaseIndent() - Method in class de.carne.mcd.io.MCDOutputBuffer
- decreaseIndent() - Method in class de.carne.mcd.io.MCDPrintBuffer
- decreaseIndent() - Method in interface de.carne.mcd.MCDOutput
-
Decreases the indent level of all following print calls:
- decreaseIndent() - Method in class de.carne.mcd.PlainMCDOutput
- defaultLimit() - Method in class de.carne.mcd.MachineCodeDecoder
-
Gets this MachineCodeDecoder instance's default decode limit.
- discard() - Method in interface de.carne.mcd.io.MCDBuffer
-
Discard any buffered data operation.
- discard() - Method in class de.carne.mcd.io.MCDInputBuffer
- discard() - Method in class de.carne.mcd.io.MCDOutputBuffer
- discard(int) - Method in class de.carne.mcd.io.MCDInputBuffer
-
Discards a specific number of uncommitted bytes.
E
- EMPTY - Static variable in class de.carne.mcd.instruction.InstructionOpcode
-
The empty InstructionOpcode.
- encode(int) - Method in class de.carne.mcd.instruction.InstructionOpcode
-
Encodes this InstructionOpcode for later decoding via InstructionOpcode.decode(byte[]).
- entryCount() - Method in class de.carne.mcd.bootstrap.InstructionIndexBuilder
- entryCount() - Method in class de.carne.mcd.instruction.InstructionIndex
- entryCount() - Method in interface de.carne.mcd.instruction.InstructionIndexParameters
-
Gets the number instructions stored in this index.
- equals(Object) - Method in class de.carne.mcd.bootstrap.InstructionReferenceEntry
- equals(Object) - Method in class de.carne.mcd.instruction.InstructionOpcode
- extraFields() - Method in class de.carne.mcd.bootstrap.InstructionReferenceEntry
-
Gets the mnemonic associated with this entry's opcode.
F
- flush() - Method in class de.carne.mcd.PlainMCDOutput
G
- getDecoder() - Static method in class de.carne.mcd.MachineCodeDecoder
-
Gets the active MachineCodeDecoder.
- getDecoder(Class<T>) - Static method in class de.carne.mcd.MachineCodeDecoder
-
Gets the active MachineCodeDecoder.
- getDefaultInstruction() - Method in interface de.carne.mcd.instruction.InstructionFactory
-
Creates a default Instruction instance for handling opcodes not assigned to any specific Instruction instance.
- getExtraField(int) - Method in class de.carne.mcd.bootstrap.InstructionReferenceEntry
-
Gets the value of a specific extra field.
- getTotalRead() - Method in class de.carne.mcd.io.MCDInputBuffer
-
Gets the total number of bytes read via this MCDInputBuffer instance.
H
- hashCode() - Method in class de.carne.mcd.bootstrap.InstructionReferenceEntry
- hashCode() - Method in class de.carne.mcd.instruction.InstructionOpcode
I
- increaseIndent() - Method in class de.carne.mcd.io.MCDOutputBuffer
- increaseIndent() - Method in class de.carne.mcd.io.MCDPrintBuffer
- increaseIndent() - Method in interface de.carne.mcd.MCDOutput
-
Increases the indent level of all following print calls:
- increaseIndent() - Method in class de.carne.mcd.PlainMCDOutput
- instruction() - Method in class de.carne.mcd.instruction.InstructionIndex.LookupResult
-
Gets the matching Instruction of the lookup.
- Instruction - Interface in de.carne.mcd.instruction
-
Interface for all kind of decodable instructions.
- InstructionFactory - Interface in de.carne.mcd.instruction
-
Interface for instruction creation.
- InstructionIndex - Class in de.carne.mcd.instruction
-
Loads and searches a persistent index for mapping opcode bytes to Instruction instances.
- InstructionIndex.LookupResult - Class in de.carne.mcd.instruction
-
Index lookup result.
- InstructionIndexBuilder - Class in de.carne.mcd.bootstrap
-
Helper class used to create an InstructionIndex resource file.
- InstructionIndexBuilder() - Constructor for class de.carne.mcd.bootstrap.InstructionIndexBuilder
- InstructionIndexParameters - Interface in de.carne.mcd.instruction
-
Query interface providing index meta informations.
- InstructionOpcode - Class in de.carne.mcd.instruction
-
Immutable byte sequence representing an opcode.
- InstructionReference<T extends InstructionReferenceEntry> - Class in de.carne.mcd.bootstrap
-
Helper class used to create and update a instruction reference file suitable for InstructionIndex generation.
- InstructionReference() - Constructor for class de.carne.mcd.bootstrap.InstructionReference
- InstructionReferenceEntry - Class in de.carne.mcd.bootstrap
-
Helper class representing a single entry/line in an instruction reference file.
- InstructionReferenceEntry(InstructionReferenceEntry) - Constructor for class de.carne.mcd.bootstrap.InstructionReferenceEntry
- InstructionReferenceEntry(InstructionOpcode, String, List<String>) - Constructor for class de.carne.mcd.bootstrap.InstructionReferenceEntry
- isEmtpy() - Method in class de.carne.mcd.io.MCDPrintBuffer
-
Checks whether this buffer instance is empty or not:
L
- length() - Method in class de.carne.mcd.instruction.InstructionOpcode
-
Gets the number of bytes represented by this InstructionOpcode instance.
- load(File) - Method in class de.carne.mcd.bootstrap.InstructionReference
-
Loads instruction reference entries from a file.
- load(File, Charset) - Method in class de.carne.mcd.bootstrap.InstructionReference
-
Loads instruction reference entries from a file.
- loadInstruction(DataInput) - Method in interface de.carne.mcd.instruction.InstructionFactory
-
Loads and setups an Instruction instance from a data stream previously written via Instruction.save(java.io.DataOutput).
- logStatus() - Method in class de.carne.mcd.bootstrap.InstructionReference
-
Logs the current status of this instance.
- lookupNextInstruction(MCDInputBuffer, boolean) - Method in class de.carne.mcd.instruction.InstructionIndex
-
Looks up the next Instruction instance corresponding to the opcode bytes provided via the given MCDInputBuffer instance.
M
- MachineCodeDecoder - Class in de.carne.mcd
-
Base class for all kinds of machine code decoders.
- MachineCodeDecoder(String, ByteOrder, long) - Constructor for class de.carne.mcd.MachineCodeDecoder
- MCDBuffer - Interface in de.carne.mcd.io
-
Buffer interface providing commit & discard support.
- MCDInputBuffer - Class in de.carne.mcd.io
-
Buffered byte channel access during decoding.
- MCDInputBuffer(ReadableByteChannel, ByteOrder) - Constructor for class de.carne.mcd.io.MCDInputBuffer
-
Constructs a new MCDInputBuffer instance.
- MCDInputBuffer(ReadableByteChannel, ByteOrder, int) - Constructor for class de.carne.mcd.io.MCDInputBuffer
-
Constructs a new MCDInputBuffer instance.
- MCDOutput - Interface in de.carne.mcd
-
Output interface for decoded machine code.
- MCDOutputBuffer - Class in de.carne.mcd.io
-
A buffered MCDOutput implementation.
- MCDOutputBuffer(MCDOutput) - Constructor for class de.carne.mcd.io.MCDOutputBuffer
-
Constructs a new MCDOutputBuffer instance.
- MCDPrintBuffer - Class in de.carne.mcd.io
-
Utility class used for queuing MCDOutput commands.
- MCDPrintBuffer() - Constructor for class de.carne.mcd.io.MCDPrintBuffer
- mergeEntries(T, T) - Method in class de.carne.mcd.bootstrap.InstructionReference
- mnemonic() - Method in class de.carne.mcd.bootstrap.InstructionReferenceEntry
-
Gets the mnemonic associated with this entry's opcode.
N
- name() - Method in class de.carne.mcd.MachineCodeDecoder
-
Gets this MachineCodeDecoder instance's name.
- newEntry(InstructionReferenceEntry) - Method in class de.carne.mcd.bootstrap.InstructionReference
- NO_VALUE - Static variable in class de.carne.mcd.bootstrap.InstructionReferenceEntry
-
"No value" field
O
- opcode() - Method in class de.carne.mcd.bootstrap.InstructionReferenceEntry
-
Gets the InstructionOpcode this entry defines.
- opcode() - Method in class de.carne.mcd.instruction.InstructionIndex.LookupResult
-
Gets the matching InstructionOpcode of the lookup.
- opcodeBytes() - Method in class de.carne.mcd.bootstrap.InstructionIndexBuilder
- opcodeBytes() - Method in class de.carne.mcd.instruction.InstructionIndex
- opcodeBytes() - Method in interface de.carne.mcd.instruction.InstructionIndexParameters
-
Gets the number of bytes used to encode an InstructionOpcode in the index's lookup table.
- open(InstructionFactory, URL) - Static method in class de.carne.mcd.instruction.InstructionIndex
-
Opens an InstructionIndex previously created via the InstructionIndexBuilder class.
P
- parameters() - Method in interface de.carne.mcd.instruction.InstructionIndexParameters
-
Gets this index's parameter dword.
- parse(String) - Static method in class de.carne.mcd.instruction.InstructionOpcode
-
Parses a byte array's string representation as returned by InstructionOpcode.toString() and it's derivates.
- PlainMCDOutput - Class in de.carne.mcd
-
MCDOutput implementation which emits the decoded to data to a PrintWriter or PrintStream.
- PlainMCDOutput(PrintStream, boolean) - Constructor for class de.carne.mcd.PlainMCDOutput
-
Constructs a new MCDOutput instance.
- PlainMCDOutput(Writer, boolean) - Constructor for class de.carne.mcd.PlainMCDOutput
-
Constructs a new MCDOutput instance.
- PlainMCDOutput(WritableByteChannel, boolean) - Constructor for class de.carne.mcd.PlainMCDOutput
-
Constructs a new MCDOutput instance.
- positionBytes() - Method in class de.carne.mcd.bootstrap.InstructionIndexBuilder
- positionBytes() - Method in class de.carne.mcd.instruction.InstructionIndex
- positionBytes() - Method in interface de.carne.mcd.instruction.InstructionIndexParameters
-
Gets the number of bytes used to encode a file position in the index's lookup table.
- print(String) - Method in class de.carne.mcd.io.MCDOutputBuffer
- print(String) - Method in class de.carne.mcd.io.MCDPrintBuffer
- print(String) - Method in interface de.carne.mcd.MCDOutput
-
Prints a standard text.
- print(String) - Method in class de.carne.mcd.PlainMCDOutput
- printComment(String) - Method in class de.carne.mcd.io.MCDOutputBuffer
- printComment(String) - Method in class de.carne.mcd.io.MCDPrintBuffer
- printComment(String) - Method in interface de.carne.mcd.MCDOutput
-
Prints a comment text.
- printComment(String) - Method in class de.carne.mcd.PlainMCDOutput
- printError(String) - Method in class de.carne.mcd.io.MCDOutputBuffer
- printError(String) - Method in class de.carne.mcd.io.MCDPrintBuffer
- printError(String) - Method in interface de.carne.mcd.MCDOutput
-
Prints an error text.
- printError(String) - Method in class de.carne.mcd.PlainMCDOutput
- printKeyword(String) - Method in class de.carne.mcd.io.MCDOutputBuffer
- printKeyword(String) - Method in class de.carne.mcd.io.MCDPrintBuffer
- printKeyword(String) - Method in interface de.carne.mcd.MCDOutput
-
Prints a keyword text.
- printKeyword(String) - Method in class de.carne.mcd.PlainMCDOutput
- printLabel(String) - Method in class de.carne.mcd.io.MCDOutputBuffer
- printLabel(String) - Method in class de.carne.mcd.io.MCDPrintBuffer
- printLabel(String) - Method in interface de.carne.mcd.MCDOutput
-
Prints a label text.
- printLabel(String) - Method in class de.carne.mcd.PlainMCDOutput
- println() - Method in class de.carne.mcd.io.MCDOutputBuffer
- println() - Method in class de.carne.mcd.io.MCDPrintBuffer
- println() - Method in interface de.carne.mcd.MCDOutput
-
Prints a line break.
- println() - Method in class de.carne.mcd.PlainMCDOutput
- println(String) - Method in class de.carne.mcd.io.MCDOutputBuffer
- println(String) - Method in class de.carne.mcd.io.MCDPrintBuffer
- println(String) - Method in interface de.carne.mcd.MCDOutput
-
Prints a standard text and a line break.
- println(String) - Method in class de.carne.mcd.PlainMCDOutput
- printlnComment(String) - Method in class de.carne.mcd.io.MCDOutputBuffer
- printlnComment(String) - Method in class de.carne.mcd.io.MCDPrintBuffer
- printlnComment(String) - Method in interface de.carne.mcd.MCDOutput
-
Prints a comment text and a line break.
- printlnComment(String) - Method in class de.carne.mcd.PlainMCDOutput
- printlnError(String) - Method in class de.carne.mcd.io.MCDOutputBuffer
- printlnError(String) - Method in class de.carne.mcd.io.MCDPrintBuffer
- printlnError(String) - Method in interface de.carne.mcd.MCDOutput
-
Prints an error text and a line break.
- printlnError(String) - Method in class de.carne.mcd.PlainMCDOutput
- printlnKeyword(String) - Method in class de.carne.mcd.io.MCDOutputBuffer
- printlnKeyword(String) - Method in class de.carne.mcd.io.MCDPrintBuffer
- printlnKeyword(String) - Method in interface de.carne.mcd.MCDOutput
-
Prints a keyword text and a line break.
- printlnKeyword(String) - Method in class de.carne.mcd.PlainMCDOutput
- printlnLabel(String) - Method in class de.carne.mcd.io.MCDOutputBuffer
- printlnLabel(String) - Method in class de.carne.mcd.io.MCDPrintBuffer
- printlnLabel(String) - Method in interface de.carne.mcd.MCDOutput
-
Prints a label text and a line break.
- printlnLabel(String) - Method in class de.carne.mcd.PlainMCDOutput
- printlnOperator(String) - Method in class de.carne.mcd.io.MCDOutputBuffer
- printlnOperator(String) - Method in class de.carne.mcd.io.MCDPrintBuffer
- printlnOperator(String) - Method in interface de.carne.mcd.MCDOutput
-
Prints an operator text and a line break.
- printlnOperator(String) - Method in class de.carne.mcd.PlainMCDOutput
- printlnValue(String) - Method in class de.carne.mcd.io.MCDOutputBuffer
- printlnValue(String) - Method in class de.carne.mcd.io.MCDPrintBuffer
- printlnValue(String) - Method in interface de.carne.mcd.MCDOutput
-
Prints a value text and a line break.
- printlnValue(String) - Method in class de.carne.mcd.PlainMCDOutput
- printOperator(String) - Method in class de.carne.mcd.io.MCDOutputBuffer
- printOperator(String) - Method in class de.carne.mcd.io.MCDPrintBuffer
- printOperator(String) - Method in interface de.carne.mcd.MCDOutput
-
Prints an operator text.
- printOperator(String) - Method in class de.carne.mcd.PlainMCDOutput
- printTo(MCDOutput) - Method in class de.carne.mcd.io.MCDPrintBuffer
-
Prints this buffer instance's entries to the given MCDOutput.
- printValue(String) - Method in class de.carne.mcd.io.MCDOutputBuffer
- printValue(String) - Method in class de.carne.mcd.io.MCDPrintBuffer
- printValue(String) - Method in interface de.carne.mcd.MCDOutput
-
Prints a value text.
- printValue(String) - Method in class de.carne.mcd.PlainMCDOutput
R
- read() - Method in class de.carne.mcd.io.MCDInputBuffer
-
Reads a single byte value.
S
- save(DataOutput) - Method in interface de.carne.mcd.instruction.Instruction
-
Saves these instruction's parameters to the given DataOutput for later loading via InstructionFactory.loadInstruction(java.io.DataInput).
- save(File) - Method in class de.carne.mcd.bootstrap.InstructionIndexBuilder
-
Saves the current state of this instance to a file.
- save(File) - Method in class de.carne.mcd.bootstrap.InstructionReference
-
Saves all instruction reference entries to a file.
- save(File, Charset) - Method in class de.carne.mcd.bootstrap.InstructionReference
-
Saves all instruction reference entries to a file.
- setAutoCommit(boolean) - Method in interface de.carne.mcd.io.MCDBuffer
-
Sets the auto-commit flag for this MCDBuffer instance.
- setAutoCommit(boolean) - Method in class de.carne.mcd.io.MCDInputBuffer
- setAutoCommit(boolean) - Method in class de.carne.mcd.io.MCDOutputBuffer
- setByteOrder(ByteOrder) - Method in class de.carne.mcd.MachineCodeDecoder
-
Sets this MachineCodeDecoder instance's byte order.
- setDefaultLimit(long) - Method in class de.carne.mcd.MachineCodeDecoder
-
Sets this MachineCodeDecoder instance's default decode limit.
- setExtraField(int, String) - Method in class de.carne.mcd.bootstrap.InstructionReferenceEntry
-
Sets the value of a specific extra field.
- skip(long) - Method in class de.carne.mcd.io.MCDInputBuffer
-
Skips the requested number of bytes from the byte channel.
- slice(long) - Method in class de.carne.mcd.io.MCDInputBuffer
-
Slices the requested number of bytes from the byte channel and wraps them into a SeekableByteChannel instance for later decoding.
T
- toI16Array(ByteBuffer) - Static method in class de.carne.mcd.io.MCDInputBuffer
-
Decodes a
shortarray from a buffer returned from MCDInputBuffer.decodeI16Array(int). - toI32Array(ByteBuffer) - Static method in class de.carne.mcd.io.MCDInputBuffer
-
Decodes an
intarray from a buffer returned from MCDInputBuffer.decodeI32Array(int). - toI64Array(ByteBuffer) - Static method in class de.carne.mcd.io.MCDInputBuffer
-
Decodes a
longarray from a buffer returned from MCDInputBuffer.decodeI64Array(int). - toI8Array(ByteBuffer) - Static method in class de.carne.mcd.io.MCDInputBuffer
-
Decodes a
bytearray from a buffer returned from MCDInputBuffer.decodeI8Array(int). - toInstruction() - Method in class de.carne.mcd.bootstrap.InstructionReferenceEntry
-
Converts this entry to the corresponding Instruction instance.
- toString() - Method in class de.carne.mcd.bootstrap.InstructionReferenceEntry
- toString() - Method in class de.carne.mcd.instruction.InstructionIndex.LookupResult
- toString() - Method in class de.carne.mcd.instruction.InstructionOpcode
- toString() - Method in class de.carne.mcd.io.MCDInputBuffer
- toString() - Method in class de.carne.mcd.io.MCDOutputBuffer
- toString() - Method in class de.carne.mcd.io.MCDPrintBuffer
- toString(byte[]) - Static method in class de.carne.mcd.instruction.InstructionOpcode
-
Returns the string representation of the given byte array.
- toString(byte[], int, int) - Static method in class de.carne.mcd.instruction.InstructionOpcode
-
Returns the string representation of the given byte range.
W
- wrap(byte[]) - Static method in class de.carne.mcd.instruction.InstructionOpcode
-
Wraps a
bytearray into a InstructionOpcode instance (without copying it). - wrap(byte[], int, int) - Static method in class de.carne.mcd.instruction.InstructionOpcode
-
Wraps a
bytearray into a InstructionOpcode instance (without copying it).
All Classes All Packages