Example usage for org.eclipse.jdt.core NamingConventions VK_PARAMETER

List of usage examples for org.eclipse.jdt.core NamingConventions VK_PARAMETER

Introduction

In this page you can find the example usage for org.eclipse.jdt.core NamingConventions VK_PARAMETER.

Prototype

int VK_PARAMETER

To view the source code for org.eclipse.jdt.core NamingConventions VK_PARAMETER.

Click Source Link

Document

Variable kind which represents an argument.

Usage

From source file:org.eclipse.xtext.common.types.xtext.ui.JdtVariableCompletions.java

License:Open Source License

protected int getVariableKind(VariableType varType) {
    switch (varType) {
    case INSTANCE_FIELD:
        return NamingConventions.VK_INSTANCE_FIELD;
    case LOCAL_VAR:
        return NamingConventions.VK_LOCAL;
    case PARAMETER:
        return NamingConventions.VK_PARAMETER;
    case STATIC_FIELD:
        return NamingConventions.VK_STATIC_FINAL_FIELD;
    default:/*from   w ww  .  ja  v  a  2s .co m*/
        throw new IllegalStateException("unhandled enum const" + varType);
    }
}