class HexaPDF::Content::Operator::BaseOperator

Parent

Base class for operator implementations.

A default implementation for the serialize method is provided. However, for performance reasons each operator should provide a custom serialize method.

Attributes

name[R]

The name of the operator.

Public Class Methods

new(name)

Initialize the operator called name.

Public Instance Methods

invoke(*)

Invokes the operator so that it performs its job.

This base version does nothing!

serialize(serializer, *operands)

Returns the string representation of the operator, i.e.

operand1 operand2 operand3 name