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
Abstract base class for DSC events.
-
Field Summary
Fields inherited from interface org.apache.xmlgraphics.ps.dsc.DSCParserConstants
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCasts this instance to a DSCComment if possible.asLine()Casts this instance to a PostScriptLine if possible.booleanIndicates whether the instance is a PostScript comment.booleanIndicates whether the instance is a DSC comment.booleanIndicates whether the instance is a header comment.booleanisLine()Indicates whether the instance is a PostScript line.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.xmlgraphics.ps.dsc.events.DSCEvent
generate, getEventType
-
Constructor Details
-
AbstractEvent
public AbstractEvent()
-
-
Method Details
-
isComment
public boolean isComment()Description copied from interface:DSCEventIndicates whether the instance is a PostScript comment. -
isDSCComment
public boolean isDSCComment()Description copied from interface:DSCEventIndicates whether the instance is a DSC comment.- Specified by:
isDSCCommentin interfaceDSCEvent- Returns:
- true if the instance is a DSC comment
- See Also:
-
isHeaderComment
public boolean isHeaderComment()Description copied from interface:DSCEventIndicates whether the instance is a header comment.- Specified by:
isHeaderCommentin interfaceDSCEvent- Returns:
- true if the instance is a header comment
- See Also:
-
isLine
public boolean isLine()Description copied from interface:DSCEventIndicates whether the instance is a PostScript line. -
asDSCComment
Description copied from interface:DSCEventCasts this instance to a DSCComment if possible.- Specified by:
asDSCCommentin interfaceDSCEvent- Returns:
- this event as a DSCComment
- See Also:
-
asLine
Description copied from interface:DSCEventCasts this instance to a PostScriptLine if possible.
-