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 Operator |
createFromCommandName(int index,
com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
Creates operator by name of com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand instance.
|
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 |
setIndex(int value)
Set Operator index in page operators list.
|
String |
toString()
Translates command and parameters into string representation.
|
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 static Operator createFromCommandName(int index, com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
Creates operator by name of com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand instance. The method is used for test purposes in com.aspose.pdf.Tests.Mocks.Engine.Commands
index - Index of operator in operators listcommand - Aspose.Pdf.Engine.CommonData.PageContent.Operators.Commands.ICommand instance representing this operatorpublic 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 boolean isTextShowOperator(Operator op)
Determines if the operator is operator which responsible for text output (Tj, TJ, etc)
op - Operator objectCopyright © 2025 Aspose. All Rights Reserved.