aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authormkersten <mkersten>2004-10-14 22:14:08 +0000
committermkersten <mkersten>2004-10-14 22:14:08 +0000
commit24508c8f49112f73c3417a38ad0d6ed3ca62e889 (patch)
tree3f137235214ceec4cdc1b98dbdd851a11786d515 /org.aspectj.ajdt.core
parente19fc5d4b74366078ed660cc9af140ffea07abd5 (diff)
downloadaspectj-24508c8f49112f73c3417a38ad0d6ed3ca62e889.tar.gz
aspectj-24508c8f49112f73c3417a38ad0d6ed3ca62e889.zip
Comment cleanup.
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java17
1 files changed, 1 insertions, 16 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java
index 3517931a9..8687cf957 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java
@@ -55,13 +55,6 @@ import org.aspectj.weaver.patterns.*;
* @author Mik Kersten
*/
public class AsmHierarchyBuilder extends ASTVisitor {
-
-// public static void build(
-// CompilationUnitDeclaration unit,
-// IHierarchy structureModel, AjBuildConfig buildConfig) {
-// LangUtil.throwIaxIfNull(unit, "unit");
-// new AsmHierarchyBuilder(unit., ).;
-// }
protected AsmElementFormatter formatter = new AsmElementFormatter();
@@ -242,7 +235,6 @@ public class AsmHierarchyBuilder extends ASTVisitor {
// ??? share impl with visit(TypeDeclaration, ..) ?
public boolean visit(TypeDeclaration memberTypeDeclaration, ClassScope scope) {
String name = new String(memberTypeDeclaration.name);
- //System.err.println("member type with name: " + name);
IProgramElement.Kind kind = IProgramElement.Kind.CLASS;
if (memberTypeDeclaration instanceof AspectDeclaration) kind = IProgramElement.Kind.ASPECT;
@@ -266,9 +258,7 @@ public class AsmHierarchyBuilder extends ASTVisitor {
stack.pop();
}
- public boolean visit(TypeDeclaration memberTypeDeclaration, BlockScope scope) {
-// String name = new String(memberTypeDeclaration.name);
-
+ public boolean visit(TypeDeclaration memberTypeDeclaration, BlockScope scope) {
String fullName = "<undefined>";
if (memberTypeDeclaration.allocation != null
&& memberTypeDeclaration.allocation.type != null) {
@@ -349,9 +339,7 @@ public class AsmHierarchyBuilder extends ASTVisitor {
formatter.genLabelAndKind(methodDeclaration, peNode);
genBytecodeInfo(methodDeclaration, peNode);
List namedPointcuts = genNamedPointcuts(methodDeclaration);
-// System.err.println(">>>>>>>>>>>>>>>>> " + methodDeclaration.);
addUsesPointcutRelationsForNode(peNode, namedPointcuts, methodDeclaration);
-// System.err.println("> named: " + namedPointcuts);
if (methodDeclaration.returnType!=null) {
peNode.setCorrespondingType(methodDeclaration.returnType.toString());
@@ -413,8 +401,6 @@ public class AsmHierarchyBuilder extends ASTVisitor {
private List genNamedPointcuts(MethodDeclaration methodDeclaration) {
List pointcuts = new ArrayList();
if (methodDeclaration instanceof AdviceDeclaration) {
-// ((AdviceDeclaration)methodDeclaration).
-// System.err.println(">>>>>>>> got advice: " + new String(methodDeclaration.selector));
if (((AdviceDeclaration)methodDeclaration).pointcutDesignator != null)
addAllNamed(((AdviceDeclaration)methodDeclaration).pointcutDesignator.getPointcut(), pointcuts);
} else if (methodDeclaration instanceof PointcutDeclaration) {
@@ -569,7 +555,6 @@ public class AsmHierarchyBuilder extends ASTVisitor {
if (curr == '/' && sb.length() > 2 && sb.charAt(sb.length()-1) == '*') completed = true; // found */
sb.append(currCompilationResult.compilationUnit.getContents()[i]);
}
-// System.err.println(">> " + sb.toString());
return sb.toString();
} else {
return null;