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

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

Introduction

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

Prototype

int Bit30

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

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;
    }/*from  w  w  w.  j av  a  2s  .co  m*/

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