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.boolean
Indicates whether the instance is a PostScript comment.boolean
Indicates whether the instance is a DSC comment.boolean
Indicates whether the instance is a header comment.boolean
isLine()
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, wait
Methods 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:DSCEvent
Indicates whether the instance is a PostScript comment. -
isDSCComment
public boolean isDSCComment()Description copied from interface:DSCEvent
Indicates whether the instance is a DSC comment.- Specified by:
isDSCComment
in interfaceDSCEvent
- 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 interfaceDSCEvent
- 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. -
asDSCComment
Description copied from interface:DSCEvent
Casts this instance to a DSCComment if possible.- Specified by:
asDSCComment
in interfaceDSCEvent
- Returns:
- this event as a DSCComment
- See Also:
-
asLine
Description copied from interface:DSCEvent
Casts this instance to a PostScriptLine if possible.
-