gov.llnl.babel.ast

Class Name

Known Direct Subclasses:
MethodName

public class Name
extends ASTNode

A user defined name for things... can be applied to NamedTypes and Arguments.

Field Summary

protected String
d_name

Fields inherited from class gov.llnl.babel.ast.ASTNode

ILLEGAL_NODEID

Constructor Summary

Name(String name)
Name(ParseTreeNode src)
This unusual (for a child of Node) constructor does not require a parent node (it is assumed that this will be determined later)
Name(ParseTreeNode node, ASTNode parent)

Method Summary

Object
accept(Visitor v, Object data)
boolean
equals(Object o)
int
hashCode()
String
toString()

Methods inherited from class gov.llnl.babel.ast.ASTNode

accept, getFilename, getFirstToken, getLastToken, getNodeId, getParent, getParseTreeNode, getSymbolTableEntry, setFirstToken, setLastToken, setNodeId, setParent, setParseTreeNode, setSymbolTableEntry

Field Details

d_name

protected String d_name

Constructor Details

Name

public Name(String name)

Name

public Name(ParseTreeNode src)
This unusual (for a child of Node) constructor does not require a parent node (it is assumed that this will be determined later)
Parameters:
src -

Name

public Name(ParseTreeNode node,
            ASTNode parent)

Method Details

accept

public Object accept(Visitor v,
                     Object data)
Overrides:
accept in interface ASTNode

equals

public boolean equals(Object o)

hashCode

public int hashCode()

toString

public String toString()