Class RepeatMarker

java.lang.Object
org.harctoolbox.irp.IrpObject
org.harctoolbox.irp.RepeatMarker
All Implemented Interfaces:
Serializable, XmlExport

public final class RepeatMarker extends IrpObject
This class implements Repeatmarker as per Chapter 8.
See Also:
  • Constructor Details

    • RepeatMarker

      public RepeatMarker(String str)
    • RepeatMarker

      public RepeatMarker(IrpParser.Repeat_markerContext ctx)
    • RepeatMarker

      public RepeatMarker(int min, int max)
    • RepeatMarker

      public RepeatMarker(int n)
    • RepeatMarker

      public RepeatMarker()
  • Method Details

    • newRepeatMarker

      public static RepeatMarker newRepeatMarker(char ch)
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in class IrpObject
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class IrpObject
    • isInfinite

      public boolean isInfinite()
    • numberOfInfiniteRepeats

      public int numberOfInfiniteRepeats()
      Overrides:
      numberOfInfiniteRepeats in class IrpObject
    • toIrpString

      public String toIrpString(int radix)
      Description copied from class: IrpObject
      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.
      Specified by:
      toIrpString in class IrpObject
      Parameters:
      radix - Radix for parameters.
      Returns:
      Formatted string.
    • getMin

      public int getMin()
      Returns:
      the min
    • getMax

      public int getMax()
      Returns:
      the max
    • toElement

      public Element toElement(Document document)
      Specified by:
      toElement in interface XmlExport
      Overrides:
      toElement in class IrpObject
      Returns:
    • isTrivial

      public boolean isTrivial()
    • weight

      public int weight()
      Description copied from class: IrpObject
      Returns a (somewhat arbitrary) measure of the complexity of the object. Can be used for determining if a decode is "simpler" than another decode.
      Specified by:
      weight in class IrpObject
      Returns:
      non-negative integer.