org.icepdf.core.pobjects.functions.postscript
Class OperatorNames

java.lang.Object
  extended by org.icepdf.core.pobjects.functions.postscript.OperatorNames

public class OperatorNames
extends java.lang.Object

OperatorsNames purpose is to define all operators in the PostScript type 4 function definitions. The function also provides an accelerated operand lookup method #getType() which returns an integer representation of the operand so that it can be quickly compared/processed at a later time.

Since:
4.2
Author:
ICEsoft Technologies Inc.

Field Summary
static int NO_OP
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_ABS
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_ADD
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_AND
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_ATAN
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_BITSHIFT
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_CEILING
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_COPY
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_COS
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_CVI
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_CVR
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_DIV
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_DUP
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_EQ
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_EXCH
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_EXP
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_EXP_END
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_EXP_START
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_FALSE
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_FLOOR
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_GE
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_GT
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_IDIV
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_IF
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_IFELSE
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_INDEX
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_LE
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_LN
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_LOG
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_LT
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_MOD
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_MUL
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_NE
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_NEG
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_NOT
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_OR
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_POP
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_ROLL
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_ROUND
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_SIN
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_SQRT
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_SUB
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_TRUE
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_TRUNCATE
          Postscript subset of operations used in a type 4 function PostScript calculator.
static int OP_XOR
          Postscript subset of operations used in a type 4 function PostScript calculator.
 
Constructor Summary
OperatorNames()
           
 
Method Summary
static int getType(char[] ch, int offset, int length)
          Gets the operator type specified by the input substring.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_OP

public static final int NO_OP
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_ABS

public static final int OP_ABS
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_ADD

public static final int OP_ADD
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_AND

public static final int OP_AND
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_ATAN

public static final int OP_ATAN
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_BITSHIFT

public static final int OP_BITSHIFT
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_CEILING

public static final int OP_CEILING
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_COS

public static final int OP_COS
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_COPY

public static final int OP_COPY
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_CVI

public static final int OP_CVI
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_CVR

public static final int OP_CVR
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_DIV

public static final int OP_DIV
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_DUP

public static final int OP_DUP
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_EQ

public static final int OP_EQ
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_EXCH

public static final int OP_EXCH
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_EXP

public static final int OP_EXP
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_FALSE

public static final int OP_FALSE
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_FLOOR

public static final int OP_FLOOR
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_GE

public static final int OP_GE
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_GT

public static final int OP_GT
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_IDIV

public static final int OP_IDIV
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_IF

public static final int OP_IF
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_IFELSE

public static final int OP_IFELSE
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_LN

public static final int OP_LN
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_INDEX

public static final int OP_INDEX
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_LE

public static final int OP_LE
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_LOG

public static final int OP_LOG
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_LT

public static final int OP_LT
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_MOD

public static final int OP_MOD
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_MUL

public static final int OP_MUL
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_NE

public static final int OP_NE
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_NEG

public static final int OP_NEG
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_NOT

public static final int OP_NOT
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_OR

public static final int OP_OR
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_POP

public static final int OP_POP
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_ROLL

public static final int OP_ROLL
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_ROUND

public static final int OP_ROUND
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_SIN

public static final int OP_SIN
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_SQRT

public static final int OP_SQRT
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_SUB

public static final int OP_SUB
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_TRUE

public static final int OP_TRUE
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_TRUNCATE

public static final int OP_TRUNCATE
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_XOR

public static final int OP_XOR
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_EXP_START

public static final int OP_EXP_START
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values

OP_EXP_END

public static final int OP_EXP_END
Postscript subset of operations used in a type 4 function PostScript calculator.

See Also:
Constant Field Values
Constructor Detail

OperatorNames

public OperatorNames()
Method Detail

getType

public static int getType(char[] ch,
                          int offset,
                          int length)
Gets the operator type specified by the input substring. PostScript operands should all be lower case but this function will handle upper and mixed case if encountered.

Parameters:
ch - character array containing postscript calculator function.
offset - starting offset of input substring.
length - length of input substring.
Returns:
integer representing the operand found as described in class constants.