Class AbstractEvent

java.lang.Object
org.apache.xmlgraphics.ps.dsc.events.AbstractEvent
All Implemented Interfaces:
DSCParserConstants, DSCEvent
Direct Known Subclasses:
AbstractDSCComment, DSCHeaderComment, PostScriptComment, PostScriptLine, UnparsedDSCComment

public abstract class AbstractEvent extends Object implements DSCEvent
Abstract base class for DSC events.
  • Constructor Details

    • AbstractEvent

      public AbstractEvent()
  • Method Details

    • isComment

      public boolean isComment()
      Description copied from interface: DSCEvent
      Indicates whether the instance is a PostScript comment.
      Specified by:
      isComment in interface DSCEvent
      Returns:
      true if the instance is a PostScript comment
      See Also:
    • isDSCComment

      public boolean isDSCComment()
      Description copied from interface: DSCEvent
      Indicates whether the instance is a DSC comment.
      Specified by:
      isDSCComment in interface DSCEvent
      Returns:
      true if the instance is a DSC comment
      See Also:
    • isHeaderComment

      public boolean isHeaderComment()
      Description copied from interface: DSCEvent
      Indicates whether the instance is a header comment.
      Specified by:
      isHeaderComment in interface DSCEvent
      Returns:
      true if the instance is a header comment
      See Also:
    • isLine

      public boolean isLine()
      Description copied from interface: DSCEvent
      Indicates whether the instance is a PostScript line.
      Specified by:
      isLine in interface DSCEvent
      Returns:
      true if the instance is a PostScript line
      See Also:
    • asDSCComment

      public DSCComment asDSCComment()
      Description copied from interface: DSCEvent
      Casts this instance to a DSCComment if possible.
      Specified by:
      asDSCComment in interface DSCEvent
      Returns:
      this event as a DSCComment
      See Also:
    • asLine

      public PostScriptLine asLine()
      Description copied from interface: DSCEvent
      Casts this instance to a PostScriptLine if possible.
      Specified by:
      asLine in interface DSCEvent
      Returns:
      this event as a PostScriptLine
      See Also: