List of usage examples for org.eclipse.jdt.core.dom BodyDeclaration getProperty
public final Object getProperty(String propertyName)
null
if none. From source file:com.github.parzonka.ccms.sorter.comparator.BodyDeclarationComparator.java
License:Open Source License
private int preserveRelativeOrder(BodyDeclaration bodyDeclaration1, BodyDeclaration bodyDeclaration2) { final int value1 = ((Integer) bodyDeclaration1.getProperty(CompilationUnitSorter.RELATIVE_ORDER)) .intValue();/*w w w . ja v a2 s. c o m*/ final int value2 = ((Integer) bodyDeclaration2.getProperty(CompilationUnitSorter.RELATIVE_ORDER)) .intValue(); return value1 - value2; }