Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

openjava.ptree
Class Parameter  view Parameter download Parameter.java

java.lang.Object
  extended byopenjava.ptree.ParseTreeObject
      extended byopenjava.ptree.NonLeaf
          extended byopenjava.ptree.Parameter
All Implemented Interfaces:
java.lang.Cloneable, ParseTree

public class Parameter
extends NonLeaf

The Parameter class represents parameter node of parse tree. Modifiers of parameter are supported from JDK 1.1. The code like:

     void test( final int i ){
         ....
     }
 

is allowed from JDK 1.1.


Field Summary
 
Fields inherited from class openjava.ptree.NonLeaf
 
Fields inherited from class openjava.ptree.ParseTreeObject
LN
 
Constructor Summary
Parameter(ModifierList modiflist, TypeName type_specifier, java.lang.String declname)
          Allocates a new object.
Parameter(TypeName type_specifier, java.lang.String declname)
          Allocates a new object.
 
Method Summary
 void accept(openjava.ptree.util.ParseTreeVisitor v)
          Accepts a ParseTreeVisitor object as the role of a Visitor in the Visitor pattern, as the role of an Element in the Visitor pattern.
 ModifierList getModifiers()
          Gets the modifiers of this parameter.
 TypeName getTypeSpecifier()
          Gets the type specifier of this parameter.
 java.lang.String getVariable()
          Gets the variable name of this parameter.
 void setModifiers(ModifierList modifs)
          Sets the modifiers of this parameter.
 void setTypeSpecifier(TypeName tspec)
          Sets the type specifier of this parameter.
 void setVariable(java.lang.String varname)
          Sets the variable name of this parameter.
 
Methods inherited from class openjava.ptree.NonLeaf
childrenAccept, elementAt, equals, getComment, getContents, getLength, makeRecursiveCopy, replaceChildWith, set, set, set, set, set, set, set, set, set, setComment, setElementAt
 
Methods inherited from class openjava.ptree.ParseTreeObject
clone, equal, getObjectID, getParent, hashCode, lastObjectID, makeCopy, replace, setParent, toFlattenString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface openjava.ptree.ParseTree
getObjectID, makeCopy, replace, toFlattenString, toString
 

Constructor Detail

Parameter

public Parameter(ModifierList modiflist,
                 TypeName type_specifier,
                 java.lang.String declname)
Allocates a new object.


Parameter

public Parameter(TypeName type_specifier,
                 java.lang.String declname)
Allocates a new object.

Method Detail

getModifiers

public ModifierList getModifiers()
Gets the modifiers of this parameter.


setModifiers

public void setModifiers(ModifierList modifs)
Sets the modifiers of this parameter.


getTypeSpecifier

public TypeName getTypeSpecifier()
Gets the type specifier of this parameter.


setTypeSpecifier

public void setTypeSpecifier(TypeName tspec)
Sets the type specifier of this parameter.


getVariable

public java.lang.String getVariable()
Gets the variable name of this parameter.


setVariable

public void setVariable(java.lang.String varname)
Sets the variable name of this parameter.


accept

public void accept(openjava.ptree.util.ParseTreeVisitor v)
            throws ParseTreeException
Description copied from interface: ParseTree
Accepts a ParseTreeVisitor object as the role of a Visitor in the Visitor pattern, as the role of an Element in the Visitor pattern.

This invoke an appropriate visit() method on the accepted visitor.

Specified by:
accept in interface ParseTree
Specified by:
accept in class ParseTreeObject