Package org.apache.fop.fonts.type1
Class PostscriptParser.PSVariable
java.lang.Object
org.apache.fop.fonts.type1.PostscriptParser.PSElement
org.apache.fop.fonts.type1.PostscriptParser.PSVariable
- Enclosing class:
PostscriptParser
An object representing a Postscript variable
-
Field Summary
Fields inherited from class org.apache.fop.fonts.type1.PostscriptParser.PSElement
binaryEntries, endPoint, hasMore, operator, readBinary, tokens -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Gets the value of the Postscript variablevoidparseByte(byte cur, int pos) Passes responsibility for processing the byte stream to the PostScript objectvoidparseToken(String token, int curPos) Delegates the parse routine to a sub classvoidsetEndPoint(int endPoint) Sets the end point location of the current Postscript variable.voidSets the value of the Postscript variable valueMethods inherited from class org.apache.fop.fonts.type1.PostscriptParser.PSElement
getBinaryEntries, getBinaryEntryByIndex, getEndPoint, getFoundUnexpected, getOperator, getStartPoint, hasMore, isInteger, parse, setFoundUnexpected
-
Constructor Details
-
PSVariable
-
-
Method Details
-
parseToken
Description copied from class:PostscriptParser.PSElementDelegates the parse routine to a sub class- Specified by:
parseTokenin classPostscriptParser.PSElement- Parameters:
token- The token which to parse
-
parseByte
public void parseByte(byte cur, int pos) Description copied from class:PostscriptParser.PSElementPasses responsibility for processing the byte stream to the PostScript object- Specified by:
parseBytein classPostscriptParser.PSElement- Parameters:
cur- The byte currently being readpos- The position of the given byte
-
setValue
Sets the value of the Postscript variable value- Parameters:
value- The value to set
-
getValue
Gets the value of the Postscript variable- Returns:
- Returns the value as a String
-
setEndPoint
public void setEndPoint(int endPoint) Sets the end point location of the current Postscript variable.- Parameters:
endPoint- The end point location as an integer
-