|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxx.compiler.binding.JavaParserUtil
public class JavaParserUtil
Created: 4 déc. 2009
| Constructor Summary | |
|---|---|
JavaParserUtil()
|
|
| Method Summary | |
|---|---|
static void |
getExpressions(SimpleNode node,
java.util.Map<SimpleNode,java.util.List<SimpleNode>> store,
java.util.List<SimpleNode> literals,
java.util.Map<SimpleNode,java.util.List<SimpleNode>> casts)
Obtain all expressions of a node and store them in store with their dependencies expressions. |
static java.lang.String |
getMethodInvocationParameters(java.lang.String code)
|
static java.lang.String |
getPropertyNameFromMethod(java.lang.String code)
|
static java.util.Set<java.lang.String> |
getRequired(java.util.Set<SimpleNode> store,
java.util.Map<SimpleNode,java.util.List<SimpleNode>> casts)
|
static void |
removeLiteralExpressions(java.util.Map<SimpleNode,java.util.List<SimpleNode>> store,
java.util.List<SimpleNode> literalExpressions)
Remove from expressions store, all literal expressions and dependencies on it. |
static void |
removeNoneStandaloneExpressions(java.util.Map<SimpleNode,java.util.List<SimpleNode>> store,
java.util.Map<SimpleNode,java.util.List<SimpleNode>> castsExpressions)
Remove from expressions sotre, all expressions with dependencies. |
static void |
scanForExpressions(SimpleNode node,
SimpleNode lastExpressionNode,
java.util.Map<SimpleNode,java.util.List<SimpleNode>> store,
java.util.List<SimpleNode> literals,
java.util.Map<SimpleNode,java.util.List<SimpleNode>> casts)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaParserUtil()
| Method Detail |
|---|
public static void getExpressions(SimpleNode node,
java.util.Map<SimpleNode,java.util.List<SimpleNode>> store,
java.util.List<SimpleNode> literals,
java.util.Map<SimpleNode,java.util.List<SimpleNode>> casts)
store with their dependencies expressions.
Also fill the literals list of literal expressions.
node - the node to scanstore - the store of expressions detected with all the expression which compose the expression (can be empty)literals - the list of literal expressions detectedcasts - the list of casted expression detected
public static void removeLiteralExpressions(java.util.Map<SimpleNode,java.util.List<SimpleNode>> store,
java.util.List<SimpleNode> literalExpressions)
store - the store of expressions with theirs dependenciesliteralExpressions - the unvierse of literal expressions
public static void removeNoneStandaloneExpressions(java.util.Map<SimpleNode,java.util.List<SimpleNode>> store,
java.util.Map<SimpleNode,java.util.List<SimpleNode>> castsExpressions)
store - the store of expressions with their dependenciescastsExpressions - list of cast expression to keep
public static java.util.Set<java.lang.String> getRequired(java.util.Set<SimpleNode> store,
java.util.Map<SimpleNode,java.util.List<SimpleNode>> casts)
public static java.lang.String getMethodInvocationParameters(java.lang.String code)
public static java.lang.String getPropertyNameFromMethod(java.lang.String code)
public static void scanForExpressions(SimpleNode node,
SimpleNode lastExpressionNode,
java.util.Map<SimpleNode,java.util.List<SimpleNode>> store,
java.util.List<SimpleNode> literals,
java.util.Map<SimpleNode,java.util.List<SimpleNode>> casts)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||