List of usage examples for org.eclipse.jdt.internal.core LocalVariable NO_LOCAL_VARIABLES
ILocalVariable[] NO_LOCAL_VARIABLES
To view the source code for org.eclipse.jdt.internal.core LocalVariable NO_LOCAL_VARIABLES.
Click Source Link
From source file:org.eclipse.ajdt.core.parserbridge.AJCompilationUnitStructureRequestor.java
License:Open Source License
private ILocalVariable[] createMethodParameters(JavaElement handle, String[] parameterTypes, char[][] argumentNames, int reasonableOffset) { if (argumentNames == null) { return null; }//from ww w . j a v a 2s. c om if (argumentNames.length == 0) { return LocalVariable.NO_LOCAL_VARIABLES; } LocalVariable[] result = new LocalVariable[argumentNames.length]; for (int i = 0; i < argumentNames.length; i++) { // we don't know the slocs, so just make something up that is vaguely reasonable result[i] = new LocalVariable(handle, String.valueOf(argumentNames[i]), reasonableOffset, reasonableOffset + 1, reasonableOffset, reasonableOffset + 1, parameterTypes[i], new org.eclipse.jdt.internal.compiler.ast.Annotation[0], Flags.AccDefault, true); } return result; }