Example usage for org.eclipse.jdt.internal.core SourceMethodInfo isAnnotationMethod

List of usage examples for org.eclipse.jdt.internal.core SourceMethodInfo isAnnotationMethod

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.core SourceMethodInfo isAnnotationMethod.

Prototype

@Override
    public boolean isAnnotationMethod() 

Source Link

Usage

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;
}