public abstract class SimpleDissector extends Dissector
| Constructor and Description |
|---|
SimpleDissector(String inputType,
Map<String,EnumSet<Casts>> outputTypes) |
| Modifier and Type | Method and Description |
|---|---|
void |
dissect(Parsable<?> parsable,
String inputname)
This method must dissect the provided field from the parsable into 'smaller' pieces.
|
abstract void |
dissect(Parsable<?> parsable,
String inputname,
Value value) |
String |
getInputType() |
List<String> |
getPossibleOutput()
What are all possible outputs that can be provided.
|
protected void |
initializeNewInstance(Dissector newInstance)
This is called after instantiating the class that is actually in the parsetree.
|
EnumSet<Casts> |
prepareForDissect(String inputname,
String outputname)
This tells the dissector that it should prepare that we will call it soon
with 'inputname' and expect to get 'inputname.outputname' because
inputname is of the type returned by getInputType and outputname
was part of the answer from getPossibleOutput.
|
void |
setInputType(String nInputType) |
createAdditionalDissectors, extractFieldName, getNewInstance, initializeFromSettingsParameter, prepareForRun, toStringpublic String getInputType()
getInputType in class Dissectorpublic void setInputType(String nInputType)
setInputType in class Dissectorpublic List<String> getPossibleOutput()
DissectorgetPossibleOutput in class Dissectorpublic EnumSet<Casts> prepareForDissect(String inputname, String outputname)
DissectorprepareForDissect in class Dissectorprotected void initializeNewInstance(Dissector newInstance) throws InvalidDissectorException
DissectorinitializeNewInstance in class DissectornewInstance - The new instances of this class that must be initializedInvalidDissectorExceptionpublic final void dissect(Parsable<?> parsable, String inputname) throws DissectionFailure
Dissectordissect in class DissectorDissectionFailurepublic abstract void dissect(Parsable<?> parsable, String inputname, Value value) throws DissectionFailure
DissectionFailureCopyright © 2019. All rights reserved.