List of usage examples for org.eclipse.jdt.internal.core SourceMethodInfo isAnnotationMethod
@Override
public boolean isAnnotationMethod()
From source file:org.eclipse.ajdt.core.javaelements.AspectJMemberElement.java
License:Open Source License
public IMemberValuePair getDefaultValue() throws JavaModelException { // this method is only need for IMethods that are annotation methods // So, for aspect members, this always returns null SourceMethodInfo sourceMethodInfo = (SourceMethodInfo) getElementInfo(); if (sourceMethodInfo.isAnnotationMethod()) { return ((SourceAnnotationMethodInfo) sourceMethodInfo).defaultValue; }/*from w ww . j av a2 s .c o m*/ return null; }