com.bea.tuxedo.control
Class TuxClassFMLValidate

java.lang.Object
  extended by com.bea.tuxedo.control.TuxClassFMLValidate
All Implemented Interfaces:
ITuxClass

public class TuxClassFMLValidate
extends Object
implements ITuxClass

Provide access to the fields in an FML or FML32 buffer. Used by the validator code.


Constructor Summary
TuxClassFMLValidate(boolean is32Bit, MethodDeclaration methodDecl, AnnotationProcessorEnvironment procEnv)
          Constructor.
TuxClassFMLValidate(HashMap table, boolean is32bit, MethodDeclaration method, AnnotationProcessorEnvironment env)
          Constructor that takes an already generated table
 
Method Summary
 void addTable(TypeDeclaration td)
          Add a field table to the map.
 ITuxField getField(String name)
          Not used for validation code
 HashMap getTable()
          Get the table built for this class.
 int getType(String fldName)
          Get the FML field type for an FML or FML32 field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TuxClassFMLValidate

public TuxClassFMLValidate(boolean is32Bit,
                           MethodDeclaration methodDecl,
                           AnnotationProcessorEnvironment procEnv)
Constructor.

Parameters:
is32Bit - True indicates an FML32 buffer, false FML.

TuxClassFMLValidate

public TuxClassFMLValidate(HashMap table,
                           boolean is32bit,
                           MethodDeclaration method,
                           AnnotationProcessorEnvironment env)
Constructor that takes an already generated table

Parameters:
table - A HashMap retreived from a different ITuxClassViewValidate instance
is32bit - Do these tables represent FML or FML32?
method - Method for positioning message
env - Annotation environment to obtain Messager
Method Detail

getType

public int getType(String fldName)
Get the FML field type for an FML or FML32 field.

Specified by:
getType in interface ITuxClass
Parameters:
fldName - the name of the field
Returns:
the field type or -1 if no field with the given name could be found

addTable

public void addTable(TypeDeclaration td)
Add a field table to the map. Uses the compiler's internal representation of the class.

Parameters:
c - Field Table class.

getField

public ITuxField getField(String name)
Not used for validation code

Specified by:
getField in interface ITuxClass
Parameters:
name - The name of the desired field.
Returns:
An ITuxField object representing the field.

getTable

public HashMap getTable()
Get the table built for this class.

Returns:
the HashMap representing the name to type mapping for this class.