List of usage examples for org.aspectj.org.eclipse.jdt.core.dom AroundAdviceDeclaration aroundRETURN_TYPE_PROPERTY
ChildPropertyDescriptor aroundRETURN_TYPE_PROPERTY
To view the source code for org.aspectj.org.eclipse.jdt.core.dom AroundAdviceDeclaration aroundRETURN_TYPE_PROPERTY.
Click Source Link
From source file:org.eclipse.ajdt.core.dom.rewrite.AjASTRewriteAnalyzer.java
License:Open Source License
private void rewriteReturnType(AroundAdviceDeclaration node) { // ajh02: method added ChildPropertyDescriptor property = (node.getAST().apiLevel() == JLS2_INTERNAL) ? AroundAdviceDeclaration.aroundRETURN_TYPE_PROPERTY : AroundAdviceDeclaration.aroundRETURN_TYPE2_PROPERTY; // weakness in the AST: return type can exist, even if missing in source ASTNode originalReturnType = (ASTNode) getOriginalValue(node, property); boolean returnTypeExists = originalReturnType != null && originalReturnType.getStartPosition() != -1; if (returnTypeExists) { rewriteRequiredNode(node, property); return;//from w ww. j a v a 2s .c o m } // difficult cases: return type insert or remove }