org.mesopotamia.lang.java
Class TypeParameter

java.lang.Object
  extended by LanguageElement
      extended by org.mesopotamia.lang.java.JavaLanguageElement
          extended by org.mesopotamia.lang.java.TypeParameter
All Implemented Interfaces:
Info, TypeInfo

public class TypeParameter
extends JavaLanguageElement
implements TypeInfo


Field Summary
 
Fields inherited from class org.mesopotamia.lang.java.JavaLanguageElement
fcn, fcnCalculated, JAVA_LANG_OBJECT, providerHandle
 
Constructor Summary
TypeParameter(NodeData xData, java.lang.Class<?> context, Scan scan, RepositoryLanguage language, java.lang.Object environment)
           
 
Method Summary
protected  void acceptChildren(Visitor visitor)
           
 MethodInfo findConstructor(java.lang.String[] parameterTypes)
           
 TypeInfo findNestedType(java.lang.String name)
           
 MethodInfo findTypeMethod(java.lang.String name, java.lang.String[] parameterTypes)
           
 VariableInfo findTypeVariable(java.lang.String name)
           
 TypeInfo getDeclaringType()
           
 java.lang.String getFcn()
          Helper method for giving FCN's to anonymous and local classes.
 java.util.List<java.lang.String> getModifiers()
           
 java.lang.String getName()
           
 TypeBound getTypeBound()
           
 boolean isKindOf(java.lang.String superFcn)
           
 void toDom(org.w3c.dom.Element holder)
           
 
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
 

Constructor Detail

TypeParameter

public TypeParameter(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)

getName

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

getTypeBound

public TypeBound getTypeBound()

acceptChildren

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

findTypeMethod

public MethodInfo findTypeMethod(java.lang.String name,
                                 java.lang.String[] parameterTypes)
Specified by:
findTypeMethod in interface TypeInfo

findNestedType

public TypeInfo findNestedType(java.lang.String name)
Specified by:
findNestedType in interface TypeInfo

findTypeVariable

public VariableInfo findTypeVariable(java.lang.String name)
Specified by:
findTypeVariable in interface TypeInfo

isKindOf

public boolean isKindOf(java.lang.String superFcn)
Specified by:
isKindOf in interface TypeInfo
Parameters:
superFcn - Fully qualified name of superclass or superinterface.
Returns:
true if class/interface represented by this type info is the same or subclass or subinterface of class/interface with name passed in superFcn parameter.

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.

getDeclaringType

public TypeInfo getDeclaringType()
Specified by:
getDeclaringType in interface Info
Returns:
Information about declaring type. Null for local variables and local and anonymous classes.

getModifiers

public java.util.List<java.lang.String> getModifiers()
Specified by:
getModifiers in interface Info

findConstructor

public MethodInfo findConstructor(java.lang.String[] parameterTypes)
Specified by:
findConstructor in interface TypeInfo


Copyright © 2005 Hammurapi Group. All Rights Reserved.