org.stjs.generator.check.expression
Class NewClassObjectInitCheck

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

public class NewClassObjectInitCheck
extends Object
implements CheckContributor<com.sun.source.tree.NewClassTree>

this class checks that only field assignment are present in the initialization like this:
new Type(){{x = 1; y = 2; }};

Author:
acraciun

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

Constructor Detail

NewClassObjectInitCheck

public NewClassObjectInitCheck()
Method Detail

visit

public Void visit(CheckVisitor visitor,
                  com.sun.source.tree.NewClassTree tree,
                  GenerationContext<Void> context)
Specified by:
visit in interface VisitorContributor<com.sun.source.tree.NewClassTree,Void,GenerationContext<Void>,CheckVisitor>


Copyright © 2014. All Rights Reserved.