org.stjs.generator.check.expression
Class MethodInvocationMapConstructorCheck
java.lang.Object
org.stjs.generator.check.expression.MethodInvocationMapConstructorCheck
- All Implemented Interfaces:
- CheckContributor<com.sun.source.tree.MethodInvocationTree>, VisitorContributor<com.sun.source.tree.MethodInvocationTree,Void,GenerationContext<Void>,CheckVisitor>
public class MethodInvocationMapConstructorCheck
- extends Object
- implements CheckContributor<com.sun.source.tree.MethodInvocationTree>
this class checks that you use only literals for a map key: i.e. $map(variable, 1) is not allowed but $map("key", 1)
is allowed
- Author:
- acraciun
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodInvocationMapConstructorCheck
public MethodInvocationMapConstructorCheck()
visit
public Void visit(CheckVisitor visitor,
com.sun.source.tree.MethodInvocationTree tree,
GenerationContext<Void> context)
- Specified by:
visit in interface VisitorContributor<com.sun.source.tree.MethodInvocationTree,Void,GenerationContext<Void>,CheckVisitor>
Copyright © 2014. All Rights Reserved.