org.stjs.generator.check.expression
Class MethodInvocationOuterScopeCheck

java.lang.Object
  extended by org.stjs.generator.check.expression.MethodInvocationOuterScopeCheck
All Implemented Interfaces:
CheckContributor<com.sun.source.tree.MethodInvocationTree>, VisitorContributor<com.sun.source.tree.MethodInvocationTree,Void,GenerationContext<Void>,CheckVisitor>

public class MethodInvocationOuterScopeCheck
extends Object
implements CheckContributor<com.sun.source.tree.MethodInvocationTree>

this check verifies that you don't call a method from the outer type as in javaScript this scope is not accessible.

Author:
acraciun

Constructor Summary
MethodInvocationOuterScopeCheck()
           
 
Method Summary
 Void visit(CheckVisitor visitor, com.sun.source.tree.MethodInvocationTree tree, GenerationContext<Void> context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodInvocationOuterScopeCheck

public MethodInvocationOuterScopeCheck()
Method Detail

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.