org.mesopotamia.lang.java
Class MethodDefinition

java.lang.Object
  extended by LanguageElement
      extended by org.mesopotamia.lang.java.JavaLanguageElement
          extended by org.mesopotamia.lang.java.Field
              extended by org.mesopotamia.lang.java.Code
                  extended by org.mesopotamia.lang.java.Operation
                      extended by org.mesopotamia.lang.java.MethodDefinition
All Implemented Interfaces:
Info, MethodInfo, Scope

public class MethodDefinition
extends Operation
implements MethodInfo


Field Summary
 
Fields inherited from class org.mesopotamia.lang.java.Code
variables
 
Fields inherited from class org.mesopotamia.lang.java.JavaLanguageElement
fcn, fcnCalculated, JAVA_LANG_OBJECT, providerHandle
 
Fields inherited from interface org.mesopotamia.lang.java.ref.MethodInfo
CONSTRUCTOR_NAME
 
Constructor Summary
MethodDefinition(NodeData xData, java.lang.Class<?> context, Scan scan, RepositoryLanguage language, java.lang.Object environment)
           
 
Method Summary
protected  void acceptChildren(Visitor visitor)
           
 java.lang.String getFcn()
          Helper method for giving FCN's to anonymous and local classes.
 java.lang.String getName()
           
 TypeSpecification getReturnType()
           
 void toDom(org.w3c.dom.Element holder)
           
 
Methods inherited from class org.mesopotamia.lang.java.Operation
findType, getDeclaringType, getExceptionTypes, getParameters, getParameterTypes, getThrows, getTypeParameters, setScope
 
Methods inherited from class org.mesopotamia.lang.java.Code
findMethod, findVariable, getStatements
 
Methods inherited from class org.mesopotamia.lang.java.Field
getAnnotations, getModifiers
 
Methods inherited from class org.mesopotamia.lang.java.JavaLanguageElement
getComments, getProvider, setProviderHandle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mesopotamia.lang.java.ref.MethodInfo
getExceptionTypes, getParameterTypes
 
Methods inherited from interface org.mesopotamia.lang.java.ref.Info
getDeclaringType, getModifiers
 

Constructor Detail

MethodDefinition

public MethodDefinition(NodeData xData,
                        java.lang.Class<?> context,
                        Scan scan,
                        RepositoryLanguage language,
                        java.lang.Object environment)
                 throws MesopotamiaException
Throws:
MesopotamiaException
Method Detail

toDom

public void toDom(org.w3c.dom.Element holder)
Overrides:
toDom in class Operation

getName

public java.lang.String getName()
Specified by:
getName in interface Info
Returns:
Variable, type of method name.

getReturnType

public TypeSpecification getReturnType()
Specified by:
getReturnType in interface MethodInfo

acceptChildren

protected void acceptChildren(Visitor visitor)
Overrides:
acceptChildren in class Operation

getFcn

public java.lang.String getFcn()
Description copied from class: JavaLanguageElement
Helper method for giving FCN's to anonymous and local classes.

Specified by:
getFcn in interface Info
Overrides:
getFcn in class JavaLanguageElement
Returns:
Fully qualified name. Null for local variables and local and anonymous classes/interfaces.


Copyright © 2005 Hammurapi Group. All Rights Reserved.