org.acm.seguin.summary.query
Class LookupVariable

java.lang.Object
  extended by org.acm.seguin.summary.query.LookupVariable

public class LookupVariable
extends java.lang.Object

Performs a local variable lookup

Author:
Chris Seguin

Constructor Summary
LookupVariable()
           
 
Method Summary
static VariableSummary getLocal(MethodSummary method, java.lang.String name)
          Looks up the variable inside the method
static VariableSummary query(MethodSummary method, java.lang.String name)
          Looks up the variable
static VariableSummary queryFieldSummary(TypeSummary currentType, java.lang.String name)
          Get a field summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookupVariable

public LookupVariable()
Method Detail

query

public static VariableSummary query(MethodSummary method,
                                    java.lang.String name)
Looks up the variable

Parameters:
method - the method summary
name - the name of the variable to find
Returns:
the variable summary if found or null otherwise

queryFieldSummary

public static VariableSummary queryFieldSummary(TypeSummary currentType,
                                                java.lang.String name)
Get a field summary

Parameters:
currentType - the type to search in
name - the name of the field
Returns:
the field summary found or null if none was found

getLocal

public static VariableSummary getLocal(MethodSummary method,
                                       java.lang.String name)
Looks up the variable inside the method

Parameters:
method - the method summary
name - the name of the variable to find
Returns:
the variable summary if found or null otherwise