com.joanju.cg.codegen
Class TargetTypes

java.lang.Object
  extended by com.joanju.cg.codegen.TargetTypes

public class TargetTypes
extends java.lang.Object

'Enum' of Progress procedure types. This is only for calls/procedures, and has nothing to do with other jump types, like triggers and pub/sub.

The three values are TokenTypes.PROCEDURE, TokenTypes.FUNCTION, and TokenTypes.METHOD. I have not dealt with CONSTRUCTOR/DESTRUCTOR.

I still find Java enum to be too clumsy in places where what I really need is int constants.


Field Summary
static int FUNCTION
           
static int METHOD
           
static int PROCEDURE
           
 
Constructor Summary
TargetTypes()
           
 
Method Summary
static java.lang.String toString(int targetType)
          For debugging output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROCEDURE

public static final int PROCEDURE

FUNCTION

public static final int FUNCTION

METHOD

public static final int METHOD
Constructor Detail

TargetTypes

public TargetTypes()
Method Detail

toString

public static java.lang.String toString(int targetType)
For debugging output.



Copyright © 2008 Joanju Software. All Rights Reserved.