org.apache.myfaces.buildtools.maven2.plugin.javascript.obfuscator.javascript15parser
Class AnnotatedToken

java.lang.Object
  extended by org.apache.myfaces.buildtools.maven2.plugin.javascript.obfuscator.javascript15parser.Token
      extended by org.apache.myfaces.buildtools.maven2.plugin.javascript.obfuscator.javascript15parser.AnnotatedToken

public class AnnotatedToken
extends Token


Field Summary
protected  int _annotationKind
           
protected  Object _annotationObject
           
protected  boolean _funcUsesEval
           
protected  Vector _productions
           
protected  boolean _remove
           
protected  String _type
           
protected  int _wsSensitive
           
static int INFIX_WS
           
static int PREFIX_WS
           
protected static Vector SPECIAL_TYPES
           
 
Fields inherited from class org.apache.myfaces.buildtools.maven2.plugin.javascript.obfuscator.javascript15parser.Token
beginColumn, beginLine, endColumn, endLine, image, kind, next, specialToken
 
Constructor Summary
AnnotatedToken()
           
AnnotatedToken(int annotationKind, Object annotationObject)
           
 
Method Summary
 boolean canRemove()
           
 boolean functionUsesEval()
           
 int getAnnotationKind()
           
 Object getAnnotationObject()
           
 int getKind()
           
 AnnotatedToken getNext()
           
 Vector getProductions()
           
 AnnotatedToken getSpecialToken()
           
 String getType()
           
 boolean isComment()
           
 boolean isInfixWSSensitive()
           
 boolean isNewLine()
           
 boolean isPrefixWSSensitive()
           
 boolean isRemovableKeyword()
           
 boolean isSpecialClassType()
           
 boolean isSpecialObjectType()
           
 boolean isWhiteSpace()
           
 boolean isWSSensitive()
           
 void setAnnotationKind(int annotationKind)
           
 void setAnnotationObject(Object annotationObject)
           
 void setFunctionUsesEval(boolean usesEval)
           
 void setRemovable(boolean remove)
           
 void setType(String type)
           
 void setWSSensitive(int i)
           
 
Methods inherited from class org.apache.myfaces.buildtools.maven2.plugin.javascript.obfuscator.javascript15parser.Token
newToken, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SPECIAL_TYPES

protected static final Vector SPECIAL_TYPES

PREFIX_WS

public static final int PREFIX_WS
See Also:
Constant Field Values

INFIX_WS

public static final int INFIX_WS
See Also:
Constant Field Values

_annotationKind

protected int _annotationKind

_annotationObject

protected Object _annotationObject

_wsSensitive

protected int _wsSensitive

_remove

protected boolean _remove

_funcUsesEval

protected boolean _funcUsesEval

_type

protected String _type

_productions

protected Vector _productions
Constructor Detail

AnnotatedToken

public AnnotatedToken()

AnnotatedToken

public AnnotatedToken(int annotationKind,
                      Object annotationObject)
Method Detail

setAnnotationKind

public void setAnnotationKind(int annotationKind)

getAnnotationKind

public int getAnnotationKind()

getKind

public int getKind()

setAnnotationObject

public void setAnnotationObject(Object annotationObject)

getAnnotationObject

public Object getAnnotationObject()

getNext

public AnnotatedToken getNext()

getSpecialToken

public AnnotatedToken getSpecialToken()

isWhiteSpace

public boolean isWhiteSpace()

isNewLine

public boolean isNewLine()

isComment

public boolean isComment()

isWSSensitive

public boolean isWSSensitive()

setWSSensitive

public void setWSSensitive(int i)

isPrefixWSSensitive

public boolean isPrefixWSSensitive()

isInfixWSSensitive

public boolean isInfixWSSensitive()

isRemovableKeyword

public boolean isRemovableKeyword()

isSpecialClassType

public boolean isSpecialClassType()

isSpecialObjectType

public boolean isSpecialObjectType()

canRemove

public boolean canRemove()
Returns:
Returns the _remove.

setRemovable

public void setRemovable(boolean remove)
Parameters:
_remove - The _remove to set.

getType

public String getType()
Returns:
Returns the _type.

setType

public void setType(String type)
Parameters:
_type - The _type to set.

setFunctionUsesEval

public void setFunctionUsesEval(boolean usesEval)

functionUsesEval

public boolean functionUsesEval()

getProductions

public Vector getProductions()


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