Package org.harctoolbox.irp
Class IrpObject
java.lang.Object
org.harctoolbox.irp.IrpObject
- All Implemented Interfaces:
Serializable,XmlExport
- Direct Known Subclasses:
Assignment,BareIrStream,BitField,BitSpec,BitspecIrstream,Duration,FloatNumber,GeneralSpec,IrStream,NameEngine,NameOrNumber,NumberWithDecimals,ParameterSpec,ParameterSpecs,PrimaryItem,Protocol,RepeatMarker,Variation
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateParameterSpecs(ParameterSpecs parameterSpecs) abstract booleanfinal org.antlr.v4.runtime.tree.ParseTreeabstract inthashCode()intvoidprerender(RenderData renderData, IrSignal.Pass pass, List<BitSpec> bitSpecs) propertiesMap(int noProperties) final StringDefaulted version of toIrpString().abstract StringtoIrpString(int radix) Returns a computed IRP (-segment) string representation of current IrpObject.toString()toString(int radix) final StringtoStringTree(IrpParser parser) Return a LISP-like representation of the current object.final StringtoStringTree(ParserDriver parserDriver) final org.antlr.v4.gui.TreeViewertoTreeViewer(List<String> ruleNames) final org.antlr.v4.gui.TreeViewertoTreeViewer(IrpParser parser) final org.antlr.v4.gui.TreeViewertoTreeViewer(ParserDriver parserDriver) voidvoidabstract intweight()Returns a (somewhat arbitrary) measure of the complexity of the object.
-
Constructor Details
-
IrpObject
protected IrpObject(org.antlr.v4.runtime.tree.ParseTree parseTree)
-
-
Method Details
-
getParseTree
public final org.antlr.v4.runtime.tree.ParseTree getParseTree() -
toIrpString
Returns a computed IRP (-segment) string representation of current IrpObject. Numerical parameters, but not durations etc, will be printed using the radix in the argument.- Parameters:
radix- Radix for parameters.- Returns:
- Formatted string.
-
toIrpString
Defaulted version of toIrpString().- Returns:
-
toString
-
toString
-
toStringTree
Return a LISP-like representation of the current object. Mainly for debugging.- Parameters:
parser-- Returns:
-
toStringTree
-
equals
-
hashCode
public abstract int hashCode() -
numberOfInfiniteRepeats
public int numberOfInfiniteRepeats() -
toTreeViewer
-
toTreeViewer
-
toTreeViewer
-
weight
public abstract int weight()Returns a (somewhat arbitrary) measure of the complexity of the object. Can be used for determining if a decode is "simpler" than another decode.- Returns:
- non-negative integer.
-
toElement
-
toDocument
- Specified by:
toDocumentin interfaceXmlExport
-
numberOfBits
-
numberOfBitSpecs
-
prerender
-
propertiesMap
-
updateStateWhenEntering
-
updateStateWhenExiting
-
createParameterSpecs
- Throws:
InvalidNameException
-