pstypes
Interface PSLiteral

All Superinterfaces:
PSObject
All Known Implementing Classes:
PSBoolean, PSExecArray, PSNumber, PSString

public interface PSLiteral
extends PSObject

The parent interface for all literal objects in Postscript.

The parent interface for all the literal objects that are found in Postscript programming language.  It is a subtype of PSObject,defining a new group of classes. It is used to group a set of classes which implement this interface to define specific types of literals.

There are no other subinterfaces beneath this part of the hierarchy tree.


Method Summary
 java.lang.String toString()
          Always returns a copy as a string object of the encapsulated field.
 

Method Detail

toString

public java.lang.String toString()
Always returns a copy as a string object of the encapsulated field.

The implementor should ensure that the method returns in a string form, a copy of the encapsulated data field of the object,depending on what kind of class he/she is implemented(PSString,etc).

Precondition : Current object must be one of a class implementing the PSLiteral interface.
Postcondition : An exact copy of the field value in a string form will be returned.

Returns:
A copy of the encapsulated value in string form.