FileDocCategorySizeDatePackage
IdentificationVariableDeclNode.javaAPI DocGlassfish v2 API3148Tue May 22 16:54:38 BST 2007oracle.toplink.essentials.internal.parsing

IdentificationVariableDeclNode

public abstract class IdentificationVariableDeclNode extends Node
INTERNAL

Purpose: This is the superclass for all identification declaration nodes.

Responsibilities:

    Manage the name of the identification variable.

Fields Summary
private String
name
The variable name as specified.
private String
canonicalName
The canonical represenatation of the variable name.
Constructors Summary
Methods Summary
public static java.lang.StringcalculateCanonicalName(java.lang.String name)

        return name.toLowerCase();
    
public java.lang.StringgetCanonicalVariableName()

        return canonicalName;
    
public oracle.toplink.essentials.internal.parsing.NodegetPath()

        return null;
    
public java.lang.StringgetVariableName()

        return name;
    
public voidsetVariableName(java.lang.String name)

        this.name = name;
        this.canonicalName = calculateCanonicalName(name);
    
public voidvalidate(oracle.toplink.essentials.internal.parsing.ParseTreeContext context)
INTERNAL Validate node and calculate its type.

        context.setScopeOfVariable(canonicalName);