Class Event

    • Field Detail

      • startMark

        private final Mark startMark
      • endMark

        private final Mark endMark
    • Constructor Detail

      • Event

        public Event​(Mark startMark,
                     Mark endMark)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getStartMark

        public Mark getStartMark()
      • getEndMark

        public Mark getEndMark()
      • getArguments

        protected java.lang.String getArguments()
        Generate human readable representation of the Event
        Returns:
        representation fore humans
        See Also:
        "__repr__ for Event in PyYAML"
      • is

        public boolean is​(Event.ID id)
        Check if the Event is of the provided kind
        Parameters:
        id - - the Event.ID enum
        Returns:
        true then this Event of the provided type
      • getEventId

        public abstract Event.ID getEventId()
        Get the type (kind) if this Event
        Returns:
        the ID of this Event
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object