List of usage examples for org.eclipse.jdt.internal.compiler.lookup Binding shortReadableName
public char[] shortReadableName()
From source file:org.eclipse.recommenders.utils.rcp.CompilerBindings.java
License:Open Source License
public static Optional<String> getVariableName(final Binding node) { if (node == null) { return absent(); }//from ww w . ja v a 2 s . co m switch (node.kind()) { case Binding.FIELD: case Binding.LOCAL: return of(String.valueOf(node.shortReadableName())); } return absent(); }