Example usage for org.eclipse.jdt.core.dom ImportDeclaration STATIC_PROPERTY

List of usage examples for org.eclipse.jdt.core.dom ImportDeclaration STATIC_PROPERTY

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.dom ImportDeclaration STATIC_PROPERTY.

Prototype

SimplePropertyDescriptor STATIC_PROPERTY

To view the source code for org.eclipse.jdt.core.dom ImportDeclaration STATIC_PROPERTY.

Click Source Link

Document

The "static" structural property of this node type (type: Boolean ) (added in JLS3 API).

Usage

From source file:org.eclipse.emf.codegen.merge.java.facade.ast.ASTJImport.java

License:Open Source License

/**
 * Sets {@link FacadeFlags#STATIC} flag.
 * <p>/* w w w .  j ava 2  s.co  m*/
 * Note that <code>getFlags()</code> will not return the new value.
 * 
 * @see org.eclipse.emf.codegen.merge.java.facade.ast.ASTJNode#setFlags(int)
 */
@Override
public void setFlags(int flags) {
    if (flags != getFlags()) {
        setNodeProperty(getASTNode(), (flags & FacadeFlags.STATIC) == 0 ? Boolean.FALSE : Boolean.TRUE,
                ImportDeclaration.STATIC_PROPERTY);
    }
}