org.foray.ps
Interface PsObject

All Known Subinterfaces:
PsObjectSimple
All Known Implementing Classes:
Java2DSystemDict, PDFSystemDict, PsArray, PsArrayExecuting, PsBoolean, PsColorSpace, PsDictionary, PsFile, PsFileFilter, PsFileReal, PsFontId, PsGraphicsState, PsInteger, PsMark, PsMatrix, PsName, PsNull, PsNumber, PsObjectComposite, PsOperator, PsReal, PsString, PsSystemDict4a, ReadOnlySystemDict

public interface PsObject

Interface for all PostScript objects.


Method Summary
 PsObject duplicate()
          This is a shallow copy.
 PsName getTypeName()
          Needed for the "type" operator.
 boolean isComparable(PsObject object)
          Test the comparability of two PSObjects.
 boolean isComposite()
          The method should be overridden by composite objects.
 boolean isExecutable()
          Indicates whether this object is executable.
 

Method Detail

duplicate

PsObject duplicate()
This is a shallow copy. Specifically, composite objects should generally return themselves. Simple objects should return copies of themselves.

Returns:
A duplicate of this that conforms to what is expected by the "dup" operator.

isComposite

boolean isComposite()
The method should be overridden by composite objects.

Returns:
True iff this object is a composite PostScript object.

isExecutable

boolean isExecutable()
Indicates whether this object is executable.

Returns:
True iff this object is executable.

isComparable

boolean isComparable(PsObject object)
Test the comparability of two PSObjects. Used in the eq, ne, lt, etc. operators.

Parameters:
object - The object that should be tested for comparability.
Returns:
True if this is comparable to object, false otherwise.

getTypeName

PsName getTypeName()
Needed for the "type" operator.

Returns:
The type name as defined in PSRM2, Chapter 8, "type" operator.


Copyright © 2017. All rights reserved.