main.progAnal
Class RoleHolder

java.lang.Object
  extended bymain.progAnal.RoleHolder

public class RoleHolder
extends Object

Author:
cbishop Class to note/hold variables and their roles

Constructor Summary
RoleHolder()
          Constructor for RoleHolder
 
Method Summary
 LinkedHashMap getRoles()
          Return map of variables and their roles
 Set getVariables()
          Return set of variables
 void noteRole(String roleString)
          Note role declared for given variable in comment string
 String toString()
          Print variables and their roles
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RoleHolder

public RoleHolder()
Constructor for RoleHolder

Method Detail

noteRole

public void noteRole(String roleString)
Note role declared for given variable in comment string

Parameters:
roleString - String containing role declaration

toString

public String toString()
Print variables and their roles

Returns:
String giving variables and their roles

getVariables

public Set getVariables()
Return set of variables

Returns:
Set Variables

getRoles

public LinkedHashMap getRoles()
Return map of variables and their roles

Returns:
LinkedHashMap Variables as keys and their roles as values