| Modifier and Type | Field and Description |
|---|---|
static COSName |
OPERAND_Tx |
| Constructor and Description |
|---|
CSOperation(byte[] operatorToken,
COSObject[] operands) |
CSOperation(CSOperator operator) |
CSOperation(CSOperator operator,
COSObject[] operands) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOperand(COSObject object)
Add an operand at the end of the current operand list.
|
Object |
getCache() |
COSObject |
getOperand(int i)
The operand at index
i. |
Iterator |
getOperands()
The iterator over all operands.
|
CSOperator |
getOperator()
The operator of the operation.
|
byte[] |
getOperatorToken() |
boolean |
hasOperator()
Answer
true if an operator is already defined. |
boolean |
isOpBeginMarkedContent(COSName mark)
true if this is a "begin marked content" operation with
the operand mark (or any operation when mark is null). |
boolean |
isOpEndMarkedContent()
true if this is a "end marked content" operation. |
boolean |
matchesOperator(CSOperator other)
Answer
true if this operator's name matches the token
other. |
int |
operandSize()
Answer the number of operands.
|
void |
setCache(Object cache) |
COSObject |
setOperand(int i,
COSObject object)
Set operand at index
i to objec. |
String |
toString() |
public static final COSName OPERAND_Tx
public CSOperation(byte[] operatorToken,
COSObject[] operands)
public CSOperation(CSOperator operator)
public CSOperation(CSOperator operator, COSObject[] operands)
public void addOperand(COSObject object)
object - The new operand to add.public Object getCache()
public COSObject getOperand(int i)
i.i - The index of the perand in the operand's list.i.public Iterator getOperands()
public CSOperator getOperator()
public byte[] getOperatorToken()
public boolean hasOperator()
true if an operator is already defined.true if an operator is already defined.public boolean isOpBeginMarkedContent(COSName mark)
true if this is a "begin marked content" operation with
the operand mark (or any operation when mark is null).mark - The requested operand to the operation.true if this is a "begin marked content" operation
with the operand mark.public boolean isOpEndMarkedContent()
true if this is a "end marked content" operation.true if this is a "end marked content" operationpublic boolean matchesOperator(CSOperator other)
true if this operator's name matches the token
other.other - token to check against the operators name.true if this operator's name matches the
token other.public int operandSize()
public void setCache(Object cache)
public COSObject setOperand(int i, COSObject object)
i to objec.i - The index of the perand in the operand's list.object - the operand objecti.Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.