DSCParserConstants
, DSCEvent
AbstractDSCComment
, DSCHeaderComment
, PostScriptComment
, PostScriptLine
, UnparsedDSCComment
public abstract class AbstractEvent extends java.lang.Object implements DSCEvent
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE
Constructor | Description |
---|---|
AbstractEvent() |
Modifier and Type | Method | Description |
---|---|---|
DSCComment |
asDSCComment() |
Casts this instance to a DSCComment if possible.
|
PostScriptLine |
asLine() |
Casts this instance to a PostScriptLine if possible.
|
boolean |
isComment() |
Indicates whether the instance is a PostScript comment.
|
boolean |
isDSCComment() |
Indicates whether the instance is a DSC comment.
|
boolean |
isHeaderComment() |
Indicates whether the instance is a header comment.
|
boolean |
isLine() |
Indicates whether the instance is a PostScript line.
|
generate, getEventType
public boolean isComment()
DSCEvent
isComment
in interface DSCEvent
DSCEvent.isComment()
public boolean isDSCComment()
DSCEvent
isDSCComment
in interface DSCEvent
DSCEvent.isDSCComment()
public boolean isHeaderComment()
DSCEvent
isHeaderComment
in interface DSCEvent
DSCEvent.isHeaderComment()
public boolean isLine()
DSCEvent
isLine
in interface DSCEvent
DSCEvent.isLine()
public DSCComment asDSCComment()
DSCEvent
asDSCComment
in interface DSCEvent
DSCEvent.asDSCComment()
public PostScriptLine asLine()
DSCEvent
asLine
in interface DSCEvent
DSCEvent.asLine()
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.