Home » openjdk-7 » com.sun.tools » javac » parser » [javadoc | source]
com.sun.tools.javac.parser
public class: EndPosParser [javadoc | source]
java.lang.Object
   com.sun.tools.javac.parser.JavacParser
      com.sun.tools.javac.parser.EndPosParser

All Implemented Interfaces:
    Parser

This class is similar to Parser except that it stores ending positions for the tree nodes.

This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.

Field Summary
 Map<JCTree, Integer> endPositions    A hashtable to store ending positions of source ranges indexed by the tree nodes. Defined only if option flag genEndPos is set. 
Fields inherited from com.sun.tools.javac.parser.JavacParser:
F,  allowGenerics,  allowDiamond,  allowMulticatch,  allowVarargs,  allowAsserts,  allowEnums,  allowForeach,  allowStaticImport,  allowAnnotations,  allowTWR,  keepDocComments,  keepLineMap,  EXPR,  TYPE,  NOPARAMS,  TYPEARG,  DIAMOND,  docComments,  odStackSupply,  opStackSupply,  posStackSupply
Constructor:
 public EndPosParser(ParserFactory fac,
    Lexer S,
    boolean keepDocComments,
    boolean keepLineMap) 
Method from com.sun.tools.javac.parser.EndPosParser Summary:
getEndPos,   parExpression,   parseCompilationUnit,   storeEnd,   to,   toP
Methods from com.sun.tools.javac.parser.JavacParser:
accept,   annotation,   annotationFieldValue,   annotationFieldValues,   annotationFieldValuesOpt,   annotationValue,   annotationsOpt,   arguments,   arguments,   argumentsOpt,   arrayCreatorRest,   arrayInitializer,   attach,   basicType,   block,   block,   blockStatements,   bracketsSuffix,   catchClause,   catchTypes,   checkAnnotations,   checkDiamond,   checkExprStat,   checkForeach,   checkGenerics,   checkMulticatch,   checkNoMods,   checkStaticImports,   checkTryWithResources,   checkVarargs,   classCreatorRest,   classDeclaration,   classOrInterfaceBody,   classOrInterfaceBodyDeclaration,   classOrInterfaceOrEnumDeclaration,   creator,   earlier,   enumBody,   enumDeclaration,   enumeratorDeclaration,   error,   foldStrings,   forInit,   forUpdate,   formalParameter,   formalParameters,   getEndPos,   getErrorEndPos,   getStartPos,   ident,   illegal,   illegal,   importDeclaration,   innerCreator,   interfaceDeclaration,   isZero,   literal,   methodDeclaratorRest,   modifiersOpt,   modifiersOpt,   moreStatementExpressions,   optFinal,   optag,   parExpression,   parseCompilationUnit,   parseExpression,   parseStatement,   parseType,   prec,   qualident,   qualidentList,   resource,   resources,   storeEnd,   strval,   superSuffix,   switchBlockStatementGroups,   term,   term,   term1,   term1Rest,   term2,   term2Rest,   term3,   termRest,   to,   toP,   typeArgument,   typeArguments,   typeArguments,   typeArgumentsOpt,   typeArgumentsOpt,   typeArgumentsOpt,   typeDeclaration,   typeList,   typeParameter,   typeParametersOpt,   typetag,   unoptag,   variableDeclarator,   variableDeclaratorId,   variableDeclaratorRest,   variableDeclarators,   variableDeclaratorsRest,   variableInitializer,   warning
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.tools.javac.parser.EndPosParser Detail:
 public int getEndPos(JCTree tree) 
    {@inheritDoc}
 JCExpression parExpression() 
    {@inheritDoc}
 public JCCompilationUnit parseCompilationUnit() 
 protected  void storeEnd(JCTree tree,
    int endpos) 
    {@inheritDoc}
 protected T to(T t) 
    {@inheritDoc}
 protected T toP(T t) 
    {@inheritDoc}