Do

Inheritance: java.lang.Object, com.aspose.pdf.Operator

public class Do extends Operator

Class representing Do operator (Invoke XObject).

Constructors

ConstructorDescription
Do(int index, ICommand command)Constructor for operator class.
Do(String name)Constructs new Do operator.
Do()Constructs new Do operator.

Methods

MethodDescription
getName()Get name of XObject argument of the operator.
setName(String value)Set name of XObject argument of the operator.
accept(IOperatorSelector visitor)Accepts visitor object to process operator.
toString()Returns text representation of operator.
getCommandName()Gets command name
toCommand()
fromCommand(ICommand command)

Do(int index, ICommand command)

public Do(int index, ICommand command)

Constructor for operator class.

Parameters:

ParameterTypeDescription
indexintIndex of operator.
commandICommandOperator command.

Do(String name)

public Do(String name)

Constructs new Do operator.

Parameters:

ParameterTypeDescription
namejava.lang.StringName of invoked XObject.

Do()

public Do()

Constructs new Do operator. Used for retrieving all Do operators, i.e. without checking their argument names.

getName()

public String getName()

Get name of XObject argument of the operator.

Returns: java.lang.String - String value

setName(String value)

public void setName(String value)

Set name of XObject argument of the operator.

Parameters:

ParameterTypeDescription
valuejava.lang.StringString value

accept(IOperatorSelector visitor)

public void accept(IOperatorSelector visitor)

Accepts visitor object to process operator.

Parameters:

ParameterTypeDescription
visitorIOperatorSelectorVisitor object.

toString()

public String toString()

Returns text representation of operator.

Returns: java.lang.String - Text representation of operator.

getCommandName()

public String getCommandName()

Gets command name

Returns: java.lang.String - String value

toCommand()

public ICommand toCommand()

Returns: ICommand

fromCommand(ICommand command)

public void fromCommand(ICommand command)

Parameters:

ParameterTypeDescription
commandICommand