biz.hammurapi.mesopotamia.lang.javax
Class ClassDefinitionEx

java.lang.Object
  extended by ClassDefinition
      extended by biz.hammurapi.mesopotamia.lang.javax.ClassDefinitionEx
All Implemented Interfaces:
Client<Info>, Info, Scope, Supplier<TypeInfo>, TypeInfo

public class ClassDefinitionEx
extends ClassDefinition
implements TypeInfo


Constructor Summary
ClassDefinitionEx(NodeData data, java.lang.Class context, Scan scan, RepositoryLanguage language, java.lang.Object environment, TypeInfo typeInfo)
           
 
Method Summary
 MethodInfo findMethod(java.lang.String name, java.lang.String[] argumentTypes)
          Finds method in the scope.
 TypeInfo findType(java.lang.String name)
          Finds type.
 VariableInfo findVariable(java.lang.String name)
          Finds variable info.
 java.util.Collection<Dependency<TypeInfo>> getClients()
           
 java.util.Map<java.lang.String,TypeInfo> getDeclaredTypes()
           
 TypeInfo getDeclaringType()
           
 java.lang.String getFullyQualifiedName()
           
 int getInfoModifiers()
           
 java.lang.String getName()
           
 PackageInfo getPackage()
           
 TypeInfoReference getReference()
          Returns reference to this type info.
 TypeInfo[] getSubtypes()
           
 TypeInfo[] getSupertypes()
           
 java.util.Collection<Dependency<Info>> getSuppliers()
           
 int getTypeId()
           
 boolean isAssignableFrom(TypeInfo subType)
           
 boolean showInTree(java.lang.reflect.Method method)
          Disables display of references in the browser tree.
 void visitClients(DependencyVisitor<TypeInfo> dependencyVisitor)
           
 void visitSuppliers(DependencyVisitor<Info> dependencyVisitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface biz.hammurapi.mesopotamia.lang.javax.Client
visitSuppliers
 
Methods inherited from interface biz.hammurapi.mesopotamia.lang.javax.Supplier
visitClients
 

Constructor Detail

ClassDefinitionEx

public ClassDefinitionEx(NodeData data,
                         java.lang.Class context,
                         Scan scan,
                         RepositoryLanguage language,
                         java.lang.Object environment,
                         TypeInfo typeInfo)
                  throws MesopotamiaException
Throws:
MesopotamiaException
Method Detail

findMethod

public MethodInfo findMethod(java.lang.String name,
                             java.lang.String[] argumentTypes)
Description copied from interface: Scope
Finds method in the scope.

Specified by:
findMethod in interface Scope
Parameters:
name - Method name.
argumentTypes - Argument types. For null argument type is null.
Returns:
Method info or null if not found.

findType

public TypeInfo findType(java.lang.String name)
Description copied from interface: Scope
Finds type.

Specified by:
findType in interface Scope
Parameters:
name - Fully qualified or short name.
Returns:
Type info or null if not found.

findVariable

public VariableInfo findVariable(java.lang.String name)
Description copied from interface: Scope
Finds variable info.

Specified by:
findVariable in interface Scope
Parameters:
name - Variable name.
Returns:
Variable info or null if not found.

getDeclaringType

public TypeInfo getDeclaringType()
Specified by:
getDeclaringType in interface TypeInfo

getFullyQualifiedName

public java.lang.String getFullyQualifiedName()
Specified by:
getFullyQualifiedName in interface Info
Returns:
Fully qualified name.

getName

public java.lang.String getName()
Specified by:
getName in interface Info
Returns:
Name.

getPackage

public PackageInfo getPackage()
Specified by:
getPackage in interface TypeInfo

visitClients

public void visitClients(DependencyVisitor<TypeInfo> dependencyVisitor)

visitSuppliers

public void visitSuppliers(DependencyVisitor<Info> dependencyVisitor)

isAssignableFrom

public boolean isAssignableFrom(TypeInfo subType)
Specified by:
isAssignableFrom in interface TypeInfo
Returns:
if this type info represents the same type or super interface or super type of type info passed in subType parameter.

getSupertypes

public TypeInfo[] getSupertypes()
Specified by:
getSupertypes in interface TypeInfo
Returns:
Super types. For classes superclass is the first element in the list. java.lang.Object is never included.

showInTree

public boolean showInTree(java.lang.reflect.Method method)
Disables display of references in the browser tree.


getSubtypes

public TypeInfo[] getSubtypes()
Specified by:
getSubtypes in interface TypeInfo
Returns:
Direct known subtypes of this type.

getReference

public TypeInfoReference getReference()
Description copied from interface: TypeInfo
Returns reference to this type info. The reference can be used to keep a soft reference to a type, i.e. the type itself remains eligible for garbage collection.

Specified by:
getReference in interface TypeInfo

getTypeId

public int getTypeId()
Specified by:
getTypeId in interface TypeInfo
Returns:
Type primary key in the database.

getInfoModifiers

public int getInfoModifiers()
Specified by:
getInfoModifiers in interface Info
Returns:
Modifiers for method, field or type

getClients

public java.util.Collection<Dependency<TypeInfo>> getClients()
Specified by:
getClients in interface Supplier<TypeInfo>
Returns:
Direct clients

getSuppliers

public java.util.Collection<Dependency<Info>> getSuppliers()
Specified by:
getSuppliers in interface Client<Info>
Returns:
Direct suppliers

getDeclaredTypes

public java.util.Map<java.lang.String,TypeInfo> getDeclaredTypes()
Specified by:
getDeclaredTypes in interface TypeInfo
Returns:
Nested types


Copyright © 2008 Hammurapi Group. All Rights Reserved.