JML

org.multijava.mjc
Interface JMemberDeclarationType

All Superinterfaces:
Annotatable, PhylumType
All Known Subinterfaces:
JClassDeclarationType, JConstructorDeclarationType, JFieldDeclarationType, JInterfaceDeclarationType, JMethodDeclarationType, JTypeDeclarationType
All Known Implementing Classes:
JClassDeclaration, JConstructorDeclaration, JFieldDeclaration, JInterfaceDeclaration, JMemberDeclaration, JMethodDeclaration, JmlClassDeclaration, JmlConstructorDeclaration, JmlFieldDeclaration, JmlInterfaceDeclaration, JmlMemberDeclaration, JmlMethodDeclaration, JmlTypeDeclaration, JTypeDeclaration, RacParser.RacMethodDeclaration

public interface JMemberDeclarationType
extends PhylumType, Annotatable

This type represents a java declaration in the syntax tree.


Method Summary
 void accept(MjcVisitor p)
          Accepts the specified visitor
 void genComments(MjcVisitor p)
          Generate the code in pure java form It is useful to debug and tune compilation process
 CClass getCClass()
           
 CField getField()
           
 CMethod getMethod()
           
 String ident()
           
 boolean isDeprecated()
          Returns true if this member is deprecated
 long modifiers()
           
 
Methods inherited from interface org.multijava.util.compiler.PhylumType
getTokenReference, setTokenReference
 
Methods inherited from interface org.multijava.javadoc.Annotatable
javadocComment
 

Method Detail

isDeprecated

public boolean isDeprecated()
Returns true if this member is deprecated


getField

public CField getField()
Returns:
the interface

getMethod

public CMethod getMethod()
Returns:
the interface

getCClass

public CClass getCClass()
Returns:
the interface

modifiers

public long modifiers()
Returns:
the modifiers of this declaration

ident

public String ident()
Returns:
the identifier of the object being declared

accept

public void accept(MjcVisitor p)
Accepts the specified visitor

Parameters:
p - the visitor

genComments

public void genComments(MjcVisitor p)
Generate the code in pure java form It is useful to debug and tune compilation process

Parameters:
p - the printwriter into the code is generated

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.