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
-
Field Summary
Fields inherited from interface 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DSCEvent
generate, getEventType
-
Constructor Details
-
AbstractEvent
public AbstractEvent()
-
-
Method Details
-
isComment
-
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
-
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.
-