org.aspectj.tools.ajdoc
Class StructureUtil

java.lang.Object
  extended by org.aspectj.tools.ajdoc.StructureUtil

public class StructureUtil
extends java.lang.Object


Constructor Summary
StructureUtil()
           
 
Method Summary
static java.lang.String genSignature(IProgramElement node)
           
static java.util.List getDeclareTargets(IProgramElement node)
           
static java.lang.String getPackageDeclarationFromFile(AsmManager model, java.io.File file)
           
static java.util.List getTargets(IProgramElement node, IRelationship.Kind kind)
          Calculate the targets for a given IProgramElement (and it's immediate children if its not a type or if the child is CODE) and relationship kind
static java.util.List getTargets(IProgramElement node, IRelationship.Kind kind, java.lang.String relName)
          Calculate the targets for a given IProgramElement (and it's immediate children if its not a type or if the child is CODE) and relationship kind with the specified relationship name.
static boolean isAnonymous(IProgramElement node)
           
static java.lang.String translateAjPathName(java.lang.String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StructureUtil

public StructureUtil()
Method Detail

getTargets

public static java.util.List getTargets(IProgramElement node,
                                        IRelationship.Kind kind)
Calculate the targets for a given IProgramElement (and it's immediate children if its not a type or if the child is CODE) and relationship kind

Returns:
null if a relationship of that kind is not found

getTargets

public static java.util.List getTargets(IProgramElement node,
                                        IRelationship.Kind kind,
                                        java.lang.String relName)
Calculate the targets for a given IProgramElement (and it's immediate children if its not a type or if the child is CODE) and relationship kind with the specified relationship name.

Returns:
null if a relationship of that kind is not found

getDeclareTargets

public static java.util.List getDeclareTargets(IProgramElement node)

getPackageDeclarationFromFile

public static java.lang.String getPackageDeclarationFromFile(AsmManager model,
                                                             java.io.File file)

genSignature

public static java.lang.String genSignature(IProgramElement node)

isAnonymous

public static boolean isAnonymous(IProgramElement node)

translateAjPathName

public static java.lang.String translateAjPathName(java.lang.String path)
Returns:
same path, but ending in ".java" instead of ".aj"