org.apache.myfaces.buildtools.maven2.plugin.javascript.obfuscator.filters.keywords
Class SpecialKeywordsFilter

java.lang.Object
  extended by org.apache.myfaces.buildtools.maven2.plugin.javascript.obfuscator.filters.keywords.SpecialKeywordsFilter
All Implemented Interfaces:
ObfuscatorFilter

public class SpecialKeywordsFilter
extends Object
implements ObfuscatorFilter


Constructor Summary
SpecialKeywordsFilter()
           
 
Method Summary
 AnnotatedToken filter(AnnotatedToken startToken)
           
protected  void removeSpecialTokens(AnnotatedToken token)
           
protected  AnnotatedToken removeSpecialTypes(AnnotatedToken startToken)
          The main loop removes special types (like Profiler, and CheckPoint) and all method invocations using variables of these types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpecialKeywordsFilter

public SpecialKeywordsFilter()
Method Detail

filter

public AnnotatedToken filter(AnnotatedToken startToken)
Specified by:
filter in interface ObfuscatorFilter

removeSpecialTokens

protected void removeSpecialTokens(AnnotatedToken token)

removeSpecialTypes

protected AnnotatedToken removeSpecialTypes(AnnotatedToken startToken)
The main loop removes special types (like Profiler, and CheckPoint) and all method invocations using variables of these types. The main loop calls removeSpecialTokens which removes special keywords like Assert and Logger, which were tagged by the parser as SpecialTokens

Parameters:
startToken -
Returns:


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.