Example usage for org.eclipse.jdt.internal.compiler.lookup ReferenceBinding isViewedAsDeprecated

List of usage examples for org.eclipse.jdt.internal.compiler.lookup ReferenceBinding isViewedAsDeprecated

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.compiler.lookup ReferenceBinding isViewedAsDeprecated.

Prototype

public final boolean isViewedAsDeprecated() 

Source Link

Document

Answer true if the receiver is deprecated (or any of its enclosing types)

Usage

From source file:org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.java

License:Open Source License

void faultInTypesForFieldsAndMethods() {
    // check @Deprecated annotation
    getAnnotationTagBits(); // marks as deprecated by side effect
    ReferenceBinding enclosingType = enclosingType();
    if (enclosingType != null && enclosingType.isViewedAsDeprecated() && !isDeprecated())
        this.modifiers |= ExtraCompilerModifiers.AccDeprecatedImplicitly;
    fields();/*from   ww w.  j  a v a 2 s .c  o  m*/
    methods();

    for (int i = 0, length = this.memberTypes.length; i < length; i++)
        ((SourceTypeBinding) this.memberTypes[i]).faultInTypesForFieldsAndMethods();
}