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.
|
static void |
clear() |
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.
|
ArrayList<com.aspose.pdf.engine.commondata.pagecontent.operators.commands.CommandParameter> |
getParameters()
Gets array of operator parameters.
|
com.aspose.pdf.engine.data.ITrailerable |
getTrailerable() |
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.
|
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 com.aspose.pdf.engine.data.ITrailerable getTrailerable()
public static void clear()
public String getCommandName()
Gets operator name.
public ArrayList<com.aspose.pdf.engine.commondata.pagecontent.operators.commands.CommandParameter> getParameters()
Gets array of operator parameters.
public com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand getCommand()
Gets command
public int getIndex()
Get Operator index in page operators list.
public void setIndex(int value)
Set Operator index in page operators list.
value
- int valuepublic 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 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 object