org.aspectj.tools.ajdoc
Class StructureUtil
java.lang.Object
org.aspectj.tools.ajdoc.StructureUtil
public class StructureUtil
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StructureUtil
public StructureUtil()
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"