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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createParameterSpecs
(ParameterSpecs parameterSpecs) abstract boolean
final org.antlr.v4.runtime.tree.ParseTree
abstract int
hashCode()
int
void
prerender
(RenderData renderData, IrSignal.Pass pass, List<BitSpec> bitSpecs) propertiesMap
(int noProperites) final String
Defaulted version of toIrpString().abstract String
toIrpString
(int radix) Returns a computed IRP (-segment) string representation of current IrpObject.toString()
toString
(int radix) final String
toStringTree
(IrpParser parser) Return a LISP-like representation of the current object.final String
toStringTree
(ParserDriver parserDriver) final org.antlr.v4.gui.TreeViewer
toTreeViewer
(List<String> ruleNames) final org.antlr.v4.gui.TreeViewer
toTreeViewer
(IrpParser parser) final org.antlr.v4.gui.TreeViewer
toTreeViewer
(ParserDriver parserDriver) void
void
abstract int
weight()
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:
toDocument
in interfaceXmlExport
-
numberOfBits
-
numberOfBitSpecs
-
prerender
-
propertiesMap
-
updateStateWhenEntering
-
updateStateWhenExiting
-
createParameterSpecs
- Throws:
InvalidNameException
-