org.apache.jdo.impl.jdoql.tree
Class Decl

java.lang.Object
  extended byantlr.BaseAST
      extended byantlr.CommonAST
          extended byorg.apache.jdo.impl.jdoql.jdoqlc.JDOQLAST
              extended byorg.apache.jdo.impl.jdoql.tree.NodeImpl
                  extended byorg.apache.jdo.impl.jdoql.tree.Decl
All Implemented Interfaces:
antlr.collections.AST, java.lang.Cloneable, Declaration, Node, java.io.Serializable
Direct Known Subclasses:
ParameterDecl, VariableDecl

public abstract class Decl
extends NodeImpl
implements Declaration

This node represents a declaration expression. Examples of declarations expressions are ParameterDeclarationExpression and VariableDeclarationExpression. Declaration expressions do not have any children.

Author:
Michael Watzek
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.jdo.impl.jdoql.jdoqlc.JDOQLAST
column, line, typeInfo
 
Fields inherited from class antlr.BaseAST
down, right
 
Constructor Summary
Decl()
          The noarg constructor is needed for ANTLR support and deserialization.
 
Method Summary
 java.lang.String getName()
          Returns the name of the specialized declaration.
 java.lang.String getTypeName()
          Returns the Java type name of the specialized declaration.
 void setName(java.lang.String name)
          Sets the name of the specialized declaration.
 
Methods inherited from class org.apache.jdo.impl.jdoql.tree.NodeImpl
arrive, clone, getChildren, getJavaClass, getObject, getParent, getTokenType, leave, setObject, setParent, toString, walkNextChild
 
Methods inherited from class org.apache.jdo.impl.jdoql.jdoqlc.JDOQLAST
getColumn, getLine, getTypeInfo, initialize, initialize, initialize, setColumn, setLine, setTypeInfo, treeToString
 
Methods inherited from class antlr.CommonAST
getText, getType, initialize, setText, setType
 
Methods inherited from class antlr.BaseAST
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.jdo.jdoql.tree.Node
arrive, getChildren, getJavaClass, getObject, getParent, getTokenType, leave, setObject, setParent, walkNextChild
 

Constructor Detail

Decl

public Decl()
The noarg constructor is needed for ANTLR support and deserialization. The caller must make sure to set the ANTLR tree structure himself or, call setChildren optionally.

Method Detail

getName

public java.lang.String getName()
Returns the name of the specialized declaration.

Specified by:
getName in interface Declaration
Returns:
the name

setName

public void setName(java.lang.String name)
Sets the name of the specialized declaration. This method is used by semantic analysis only.

Parameters:
name - the name

getTypeName

public java.lang.String getTypeName()
Returns the Java type name of the specialized declaration.

Specified by:
getTypeName in interface Declaration
Returns:
the Java type name


Copyright © 2005 Apache Software Foundation. All Rights Reserved.