Package org.aspectj.tools.ajdoc
Class StructureUtil
java.lang.Object
org.aspectj.tools.ajdoc.StructureUtil
- Author:
- Mik Kersten
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
genSignature(IProgramElement node)
getDeclareTargets(IProgramElement node)
static String
getPackageDeclarationFromFile(AsmManager model, File file)
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 kindgetTargets(IProgramElement node, IRelationship.Kind kind, 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 String
translateAjPathName(String path)
-
Constructor Details
-
StructureUtil
public StructureUtil()
-
-
Method Details
-
getTargets
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 List<String> getTargets(IProgramElement node, IRelationship.Kind kind, 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
-
getPackageDeclarationFromFile
-
genSignature
-
isAnonymous
-
translateAjPathName
- Returns:
- same path, but ending in ".java" instead of ".aj"
-