org.jactr.io.participant.impl
Class BasicASTTrimmer

java.lang.Object
  extended by org.jactr.io.participant.impl.BasicASTTrimmer
All Implemented Interfaces:
IASTTrimmer

public class BasicASTTrimmer
extends java.lang.Object
implements IASTTrimmer

Author:
developer

Constructor Summary
BasicASTTrimmer(org.antlr.runtime.tree.CommonTree modelDescriptor)
           
 
Method Summary
 boolean shouldIgnore(org.antlr.runtime.tree.CommonTree element)
          during the walking of the CommonTree describing the model, this will be called for each visited node.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicASTTrimmer

public BasicASTTrimmer(org.antlr.runtime.tree.CommonTree modelDescriptor)
Method Detail

shouldIgnore

public boolean shouldIgnore(org.antlr.runtime.tree.CommonTree element)
Description copied from interface: IASTTrimmer
during the walking of the CommonTree describing the model, this will be called for each visited node. If it returns true, the code for the element will not be generated.

in the case of nodes describing chunktypes, the chunk children will still be visited.

Specified by:
shouldIgnore in interface IASTTrimmer
Returns:
See Also:
IASTTrimmer.shouldIgnore(org.antlr.runtime.tree.CommonTree)