isLocalVariable(String vn, SimpleNode node) TODO modify usages to use symbol table
Tells if the variable name is a local variable declared in the method.
Gets the image of the first ASTName node found by
SimpleNode.getFirstChildOfType(Class) Parameters: n - the node to search the image of the first ASTName or null
Gets the name of the variable returned.
Some examples:
for this.foo returns foo
for foo returns foo
for foo.bar returns foo.bar
Parameters: ret - a return statement to evaluate the name of the variable associated or null if it cannot be detected
Tells if the type declaration has a field with varName.
Parameters: varName - the name of the field to search Parameters: typeDeclaration - the type declaration true if there is a field in the type declaration named varName, false in other case
TODO modify usages to use symbol table
Tells if the variable name is a local variable declared in the method.
Parameters: vn - the variable name Parameters: node - the ASTMethodDeclaration where the local variable name will be searched true if the method declaration contains any local variable named vn and false in other case