public abstract class Operator extends Object
Abstract class representing operator.
| Constructor and Description |
|---|
Operator(int index,
com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
For internal usage only!
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
accept(IOperatorSelector visitor)
Accepts visitor IOperatorSelector which provides operators processing.
|
boolean |
equals(Operator op)
Compares this instance with the given object.
|
com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand |
getCommand()
Gets command
|
String |
getCommandName()
Gets operator name.
|
int |
getIndex()
Get Operator index in page operators list.
|
static boolean |
isTextShowOperator(Operator op)
Determines if the operator is operator which responsible for text output (Tj, TJ, etc)
|
void |
reset()
For internal usage only
|
void |
setIndex(int value)
Set Operator index in page operators list.
|
String |
toString()
Translates command and parameters into string representation.
|
static String |
toString(com.aspose.pdf.engine.data.IPdfPrimitive primitive)
Returns text representation of Pdf primitive (string, array, dictionary etc.) according to
PDF specification.
|
boolean |
valueEquals(Operator op)
Compares this instance with the given object.
|
public Operator(int index,
com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
Constructor of Operators. Creates operator by command object and operator index.
index - Index of operator in operators listcommand - Command object of operatorpublic int getIndex()
Get Operator index in page operators list.
public void setIndex(int value)
Set Operator index in page operators list.
value - int valuepublic String getCommandName()
Gets operator name.
public com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand getCommand()
Gets command
public void reset()
public abstract void accept(IOperatorSelector visitor)
Accepts visitor IOperatorSelector which provides operators processing.
visitor - Visitor objectpublic String toString()
Translates command and parameters into string representation.
public final boolean valueEquals(Operator op)
Compares this instance with the given object.
op - Operator to compare.public final boolean equals(Operator op)
Compares this instance with the given object.
op - Operator instancepublic static String toString(com.aspose.pdf.engine.data.IPdfPrimitive primitive)
Returns text representation of Pdf primitive (string, array, dictionary etc.) according to PDF specification.
primitive - Primitivepublic static boolean isTextShowOperator(Operator op)
Determines if the operator is operator which responsible for text output (Tj, TJ, etc)
op - Operator objectCopyright © 2024 Aspose. All Rights Reserved.