Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.trapezium.javascript
Class Token  view Token download Token.java

java.lang.Object
  extended bycom.trapezium.javascript.Token

class Token
extends java.lang.Object


Field Summary
(package private)  int offset
           
(package private)  boolean possibleEnd
          Does a character end a particular token, used for currentToken.
(package private)  int type
           
 
Constructor Summary
Token(int type, int offset)
           
 
Method Summary
 boolean endToken(char x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

int type

offset

int offset

possibleEnd

boolean possibleEnd
Does a character end a particular token, used for currentToken. Only the following tokens can ever be assigned as currentToken: JS_COMMENT -- all characters OK for rest of line JS_MULTILINECOMMENT -- characters OK up to C style comment end JS_NAME -- any non digit, non-number, non underscore All other tokens we arbitrarily end immediately.

Constructor Detail

Token

public Token(int type,
             int offset)
Method Detail

endToken

public boolean endToken(char x)