org.stjs.generator.check.expression
Class IdentifierAccessOuterScopeCheck
java.lang.Object
org.stjs.generator.check.expression.IdentifierAccessOuterScopeCheck
- All Implemented Interfaces:
- CheckContributor<com.sun.source.tree.IdentifierTree>, VisitorContributor<com.sun.source.tree.IdentifierTree,Void,GenerationContext<Void>,CheckVisitor>
public class IdentifierAccessOuterScopeCheck
- extends Object
- implements CheckContributor<com.sun.source.tree.IdentifierTree>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdentifierAccessOuterScopeCheck
public IdentifierAccessOuterScopeCheck()
enclosingClassSkipAnonymousInitializer
public static com.sun.source.tree.ClassTree enclosingClassSkipAnonymousInitializer(com.sun.source.util.TreePath path)
- if the block is an anonymous initializer, then return the outer class
- Parameters:
element -
- Returns:
isOuterType
public static boolean isOuterType(GenerationContext<Void> context,
TypeElement outerType,
TypeElement subType)
- true if outerType is striclty the outer type of the subtype
- Parameters:
context - outerType - subType -
- Returns:
visit
public Void visit(CheckVisitor visitor,
com.sun.source.tree.IdentifierTree tree,
GenerationContext<Void> context)
- Specified by:
visit in interface VisitorContributor<com.sun.source.tree.IdentifierTree,Void,GenerationContext<Void>,CheckVisitor>
Copyright © 2014. All Rights Reserved.