org.kuali.rice.devtools.jpa.eclipselink.conv.parser
Class ParserUtil
java.lang.Object
org.kuali.rice.devtools.jpa.eclipselink.conv.parser.ParserUtil
public final class ParserUtil
- extends Object
Method Summary |
static void |
deconstructMultiDeclarations(Collection<japa.parser.ast.body.FieldDeclaration> fields)
In Java variables can be defined like the following:
int i, j, k;
When mapping fields in xml this is not a problem. |
static List<japa.parser.ast.body.FieldDeclaration> |
getFieldMembers(List<japa.parser.ast.body.BodyDeclaration> members)
|
static String |
getFieldName(japa.parser.ast.body.FieldDeclaration field)
|
static void |
sortImports(List<japa.parser.ast.ImportDeclaration> imports)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
deconstructMultiDeclarations
public static void deconstructMultiDeclarations(Collection<japa.parser.ast.body.FieldDeclaration> fields)
- In Java variables can be defined like the following:
int i, j, k;
When mapping fields in xml this is not a problem. However when using annotation on a field,
Each field should be defined separately. This helper will deconstruct these fields such
that later AST analysis will not need to account for field defined on a separate line.
getFieldMembers
public static List<japa.parser.ast.body.FieldDeclaration> getFieldMembers(List<japa.parser.ast.body.BodyDeclaration> members)
getFieldName
public static String getFieldName(japa.parser.ast.body.FieldDeclaration field)
sortImports
public static void sortImports(List<japa.parser.ast.ImportDeclaration> imports)
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.