Browse Source

329111

tags/V1_6_11M1
aclement 13 years ago
parent
commit
ab0c79c208

+ 12
- 0
asm/src/org/aspectj/asm/IProgramElement.java View File

return name.startsWith("declare soft"); return name.startsWith("declare soft");
} }


public boolean isDeclareWarning() {
return name.startsWith("declare warning");
}

public boolean isDeclareError() {
return name.startsWith("declare error");
}

public boolean isDeclarePrecedence() {
return name.startsWith("declare precedence");
}

// The 4 declarations below are necessary for serialization // The 4 declarations below are necessary for serialization
private static int nextOrdinal = 0; private static int nextOrdinal = 0;
private final int ordinal = nextOrdinal++; private final int ordinal = nextOrdinal++;

+ 2
- 12
asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java View File

if (count > 1) { if (count > 1) {
return CharOperation.concat(countDelim, new Integer(count).toString().toCharArray()); return CharOperation.concat(countDelim, new Integer(count).toString().toCharArray());
} }
} else if (ipe.getKind().isDeclareAnnotation()) {
int count = computeCountBasedOnPeers(ipe);
if (count > 1) {
return CharOperation.concat(countDelim, new Integer(count).toString().toCharArray());
}
} else if (ipe.getKind().isDeclareSoft()) {
// look at peer declares
} else if (ipe.getKind().isDeclare()) {
// // look at peer declares
int count = computeCountBasedOnPeers(ipe); int count = computeCountBasedOnPeers(ipe);
if (count > 1) { if (count > 1) {
return CharOperation.concat(countDelim, new Integer(count).toString().toCharArray()); return CharOperation.concat(countDelim, new Integer(count).toString().toCharArray());
} }
} else if (ipe.getKind().isDeclare()) {
int index = CharOperation.lastIndexOf('_', byteCodeName);
if (index != -1) {
return convertCount(CharOperation.subarray(byteCodeName, index + 1, byteCodeName.length));
}
} else if (ipe.getKind().equals(IProgramElement.Kind.ADVICE)) { } else if (ipe.getKind().equals(IProgramElement.Kind.ADVICE)) {
// Look at any peer advice // Look at any peer advice
int count = 1; int count = 1;

Loading…
Cancel
Save