Top Fields Constructors Methods
jogamp.graph.font.typecast.tt.engine

public Class Parser

extends Object
Class Inheritance
Imports
jogamp.graph.font.typecast.ot.Mnemonic

Author
David Schweinsberg
Version
$Id: Parser.java,v 1.1.1.1 2004-12-05 23:15:06 davidsch Exp $

Field Summary

Modifier and TypeField and Description
private final short[][]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

The new instruction pointer
advanceIP
(int
The current instruction pointer
ip
)

Advance the instruction pointer to the next executable opcode.

public int
getISLength(final int prog)

public short
getOpcode(final int ip)

public short
getPushCount(final int ip)

public int[]
getPushData(final int ip)

public int
handleElse(int ip)

public int
handleIf(final boolean test, int ip)

public void
setCvtProgram(final short[] program)

This program is run everytime we scale the font

public void
setFontProgram(final short[] program)

This program is only run once

public void
setGlyphProgram(final short[] program)

This program is run everytime we scale the glyph

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

instructionsback to summary
private final short[][] instructions

Constructor Detail

Parserback to summary
public Parser()

Method Detail

advanceIPback to summary
public int advanceIP(int ip)

Advance the instruction pointer to the next executable opcode. This will be the next byte, unless the current opcode is a push instruction, in which case it will be the byte immediately beyond the last data byte.

Parameters
ip:int

The current instruction pointer

Returns:int

The new instruction pointer

getISLengthback to summary
public int getISLength(final int prog)
getOpcodeback to summary
public short getOpcode(final int ip)
getPushCountback to summary
public short getPushCount(final int ip)
getPushDataback to summary
public int[] getPushData(final int ip)
handleElseback to summary
public int handleElse(int ip)
handleIfback to summary
public int handleIf(final boolean test, int ip)
setCvtProgramback to summary
public void setCvtProgram(final short[] program)

This program is run everytime we scale the font

setFontProgramback to summary
public void setFontProgram(final short[] program)

This program is only run once

setGlyphProgramback to summary
public void setGlyphProgram(final short[] program)

This program is run everytime we scale the glyph

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override