org.stjs.generator.check.declaration
Class MethodOverloadCheck
java.lang.Object
org.stjs.generator.check.declaration.MethodOverloadCheck
- All Implemented Interfaces:
- CheckContributor<com.sun.source.tree.MethodTree>, VisitorContributor<com.sun.source.tree.MethodTree,Void,GenerationContext<Void>,CheckVisitor>
public class MethodOverloadCheck
- extends Object
- implements CheckContributor<com.sun.source.tree.MethodTree>
this check verifies that only one method (or constructor) with a given name has actually a body, all the other should
be marked as native (or @Native). More the method having the body must be the more generic than the other overloaded
methods, so , when generated in the JavaScript, it knows how to handle all the calls.
- Author:
- acraciun
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodOverloadCheck
public MethodOverloadCheck()
visit
public Void visit(CheckVisitor visitor,
com.sun.source.tree.MethodTree tree,
GenerationContext<Void> context)
- Specified by:
visit in interface VisitorContributor<com.sun.source.tree.MethodTree,Void,GenerationContext<Void>,CheckVisitor>
Copyright © 2014. All Rights Reserved.