AspectJ support for @interfaces in aspects

AspectJ type parameters in aspects
This commit is contained in:
Roman Shevchenko
2010-06-30 22:20:12 +04:00
parent 524e9bd309
commit 746facad4b
@@ -592,6 +592,19 @@ public class DeclarationParsing extends Parsing {
return pair;
}
public TreeElement parseAnnotationMemberValue(PsiManager manager, CharSequence text) {
Lexer originalLexer = new JavaLexer(myContext.getLanguageLevel());
FilterLexer lexer = new FilterLexer(originalLexer, new FilterLexer.SetFilter(StdTokenSets.WHITE_SPACE_OR_COMMENT_BIT_SET));
lexer.start(text);
final TreeElement result = parseAnnotationMemberValue(lexer);
final FileElement dummyRoot = DummyHolderFactory.createHolder(manager, null, myContext.getCharTable()).getTreeElement();
dummyRoot.rawAddChildren(result);
ParseUtil.insertMissingTokens(dummyRoot, originalLexer, 0, text.length(), -1, WhiteSpaceAndCommentsProcessor.INSTANCE, myContext);
return result;
}
private TreeElement parseAnnotationMemberValue(Lexer lexer) {
TreeElement result;
if (lexer.getTokenType() == JavaTokenType.AT) {