Example usage for org.eclipse.jdt.internal.compiler.ast ASTNode Bit31

List of usage examples for org.eclipse.jdt.internal.compiler.ast ASTNode Bit31

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.compiler.ast ASTNode Bit31.

Prototype

int Bit31

To view the source code for org.eclipse.jdt.internal.compiler.ast ASTNode Bit31.

Click Source Link

Usage

From source file:com.codenvy.ide.ext.java.server.internal.core.search.matching.ConstructorPattern.java

License:Open Source License

static int decodeExtraFlags(int modifiersWithExtraFlags) {
    int extraFlags = 0;

    if ((modifiersWithExtraFlags & ASTNode.Bit28) != 0) {
        extraFlags |= ExtraFlags.ParameterTypesStoredAsSignature;
    }//  www.j a  v  a 2s.c om

    if ((modifiersWithExtraFlags & ASTNode.Bit29) != 0) {
        extraFlags |= ExtraFlags.IsLocalType;
    }

    if ((modifiersWithExtraFlags & ASTNode.Bit30) != 0) {
        extraFlags |= ExtraFlags.IsMemberType;
    }

    if ((modifiersWithExtraFlags & ASTNode.Bit31) != 0) {
        extraFlags |= ExtraFlags.HasNonPrivateStaticMemberTypes;
    }

    return extraFlags;
}

From source file:com.codenvy.ide.ext.java.server.internal.core.search.matching.ConstructorPattern.java

License:Open Source License

static int decodeModifers(int modifiersWithExtraFlags) {
    return modifiersWithExtraFlags & ~(ASTNode.Bit31 | ASTNode.Bit30 | ASTNode.Bit29 | ASTNode.Bit28);
}

From source file:com.codenvy.ide.ext.java.server.internal.core.search.matching.ConstructorPattern.java

License:Open Source License

private static int encodeExtraFlags(int extraFlags) {
    int encodedExtraFlags = 0;

    if ((extraFlags & ExtraFlags.ParameterTypesStoredAsSignature) != 0) {
        encodedExtraFlags |= ASTNode.Bit28;
    }// w w w .j a  v a2  s.c om

    if ((extraFlags & ExtraFlags.IsLocalType) != 0) {
        encodedExtraFlags |= ASTNode.Bit29;
    }

    if ((extraFlags & ExtraFlags.IsMemberType) != 0) {
        encodedExtraFlags |= ASTNode.Bit30;
    }
    if ((extraFlags & ExtraFlags.HasNonPrivateStaticMemberTypes) != 0) {
        encodedExtraFlags |= ASTNode.Bit31;
    }

    return encodedExtraFlags;
}