|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.foray.ps.PsNumber
org.foray.ps.PsInteger
public class PsInteger
Class representing a numeric PostScript object.
| Field Summary | |
|---|---|
static int |
PS_LARGEST_INTEGER
Constant indicating the largest PostScript integer value. |
static int |
PS_SMALLEST_INTEGER
Constant indicating the smallest PostScript integer value. |
| Constructor Summary | |
|---|---|
PsInteger(BigDecimal value)
Constructor for a BigDecimal parameter. |
|
PsInteger(int value)
Constructor for an int parameter. |
|
| Method Summary | |
|---|---|
PsInteger |
clone()
|
static PsInteger |
create(PsInterpreter4a interpreter,
byte[] input)
Static method to attempt to create a PSInteger instance, if the input qualifies. |
PsInteger |
duplicate()
This is a shallow copy. |
PsName |
getTypeName()
Needed for the "type" operator. |
int |
intValue()
Returns the integer value of this instance. |
boolean |
isComposite()
The method should be overridden by composite objects. |
boolean |
isExecutable()
Indicates whether this object is executable. |
static PsNumber |
makePSNumber(long value)
Creates a PSInteger if value is within the PostScript architectural limits for an integer. |
String |
toString()
|
| Methods inherited from class org.foray.ps.PsNumber |
|---|
add, compareTo, divide, equals, getDoubleValue, getFloatValue, getValue, isAlphabetic, isComparable, isMember, isNumeral, multiply, negate, round, subtract |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int PS_SMALLEST_INTEGER
public static final int PS_LARGEST_INTEGER
| Constructor Detail |
|---|
public PsInteger(int value)
value - The value to encapsulate.public PsInteger(BigDecimal value)
value - The value to encapsulate. This must be a BigDecimal that has no fractional
part, that is, it must be an integer.| Method Detail |
|---|
public static PsNumber makePSNumber(long value)
value - The value to be encapsulated.
public PsInteger clone()
clone in class PsNumber
public static PsInteger create(PsInterpreter4a interpreter,
byte[] input)
interpreter - The parent interpreter.input - The byte array containing the content to be converted to
a PSInteger instance.
public PsInteger duplicate()
PsObject
public boolean isExecutable()
PsObject
public PsName getTypeName()
PsObject
public String toString()
toString in class Objectpublic boolean isComposite()
PsObject
public int intValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||