org.stjs.generator.check.declaration
Class ClassGlobalInstanceMembersCheck
java.lang.Object
org.stjs.generator.check.declaration.ClassGlobalInstanceMembersCheck
- All Implemented Interfaces:
- CheckContributor<com.sun.source.tree.ClassTree>, VisitorContributor<com.sun.source.tree.ClassTree,Void,GenerationContext<Void>,CheckVisitor>
public class ClassGlobalInstanceMembersCheck
- extends Object
- implements CheckContributor<com.sun.source.tree.ClassTree>
as for @GlobalScope - global classes, there is not class declaration, the members are attached directly to the
JavaScript global object (i.e. the window when running in the browser), the instance members have no meaning, so
forbid them.
- Author:
- acraciun
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassGlobalInstanceMembersCheck
public ClassGlobalInstanceMembersCheck()
visit
public Void visit(CheckVisitor visitor,
com.sun.source.tree.ClassTree tree,
GenerationContext<Void> context)
- Specified by:
visit in interface VisitorContributor<com.sun.source.tree.ClassTree,Void,GenerationContext<Void>,CheckVisitor>
Copyright © 2014. All Rights Reserved.