org.freehep.postscript
Class PSObject

java.lang.Object
  extended by org.freehep.postscript.PSObject
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
PSComposite, PSSimple

public abstract class PSObject
extends Object
implements Cloneable

Objects for PostScript Processor, as defined in 3.3 Data Types and Objects

Version:
$Id: PSObject.java 8951 2006-09-12 21:44:14Z duns $
Author:
Mark Donszelmann

Field Summary
protected  String name
           
 
Constructor Summary
PSObject(String name, boolean literal)
           
 
Method Summary
 boolean checkAndExecute(OperandStack os)
           
abstract  Object clone()
           
abstract  PSObject copy()
           
abstract  String cvs()
           
abstract  boolean equals(Object obj)
           
static void error(OperandStack os, ErrorOperator error)
           
abstract  boolean execute(OperandStack os)
           
abstract  String getType()
           
abstract  int hashCode()
           
 boolean isExecutable()
           
 boolean isLiteral()
           
 void setExecutable()
           
 void setLiteral()
           
 void setName(String s)
           
 String toPrint()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name
Constructor Detail

PSObject

public PSObject(String name,
                boolean literal)
Method Detail

setName

public void setName(String s)

hashCode

public abstract int hashCode()
Overrides:
hashCode in class Object

equals

public abstract boolean equals(Object obj)
Overrides:
equals in class Object

clone

public abstract Object clone()
Overrides:
clone in class Object

copy

public abstract PSObject copy()

getType

public abstract String getType()

execute

public abstract boolean execute(OperandStack os)

checkAndExecute

public boolean checkAndExecute(OperandStack os)

error

public static void error(OperandStack os,
                         ErrorOperator error)

isLiteral

public boolean isLiteral()

setLiteral

public void setLiteral()

setExecutable

public void setExecutable()

isExecutable

public boolean isExecutable()

cvs

public abstract String cvs()

toString

public String toString()
Overrides:
toString in class Object

toPrint

public String toPrint()


Copyright © 2000-2006 FreeHEP. All Rights Reserved.