| java.lang.Object com.sun.tools.javac.parser.Parser com.sun.tools.javac.parser.EndPosParser
EndPosParser | public class EndPosParser extends Parser (Code) | | This class is similar to Parser except that it stores ending
positions for the tree nodes.
This is NOT part of any API supported by Sun Microsystems.
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.
|
Constructor Summary | |
public | EndPosParser(Factory fac, Lexer S, boolean keepDocComments) |
endPositions | Map<JCTree, Integer> endPositions(Code) | | A hashtable to store ending positions
of source ranges indexed by the tree nodes.
Defined only if option flag genEndPos is set.
|
EndPosParser | public EndPosParser(Factory fac, Lexer S, boolean keepDocComments)(Code) | | |
compilationUnit | public JCCompilationUnit compilationUnit()(Code) | | |
parExpression | JCExpression parExpression()(Code) | |
|
storeEnd | protected void storeEnd(JCTree tree, int endpos)(Code) | |
|
Methods inherited from com.sun.tools.javac.parser.Parser | public void accept(Token token)(Code)(Java Doc) JCAnnotation annotation(int pos)(Code)(Java Doc) JCExpression annotationFieldValue()(Code)(Java Doc) List<JCExpression> annotationFieldValues()(Code)(Java Doc) List<JCExpression> annotationFieldValuesOpt()(Code)(Java Doc) JCExpression annotationValue()(Code)(Java Doc) List<JCAnnotation> annotationsOpt()(Code)(Java Doc) List<JCExpression> arguments()(Code)(Java Doc) JCMethodInvocation arguments(List<JCExpression> typeArgs, JCExpression t)(Code)(Java Doc) JCExpression argumentsOpt(List<JCExpression> typeArgs, JCExpression t)(Code)(Java Doc) JCExpression arrayCreatorRest(int newpos, JCExpression elemtype)(Code)(Java Doc) JCExpression arrayInitializer(int newpos, JCExpression t)(Code)(Java Doc) void attach(JCTree tree, String dc)(Code)(Java Doc) JCPrimitiveTypeTree basicType()(Code)(Java Doc) JCBlock block(int pos, long flags)(Code)(Java Doc) public JCBlock block()(Code)(Java Doc) List<JCStatement> blockStatements()(Code)(Java Doc) JCExpression bracketsSuffix(JCExpression t)(Code)(Java Doc) JCCatch catchClause()(Code)(Java Doc) void checkAnnotations()(Code)(Java Doc) protected JCExpression checkExprStat(JCExpression t)(Code)(Java Doc) void checkForeach()(Code)(Java Doc) void checkGenerics()(Code)(Java Doc) void checkNoMods(long mods)(Code)(Java Doc) void checkStaticImports()(Code)(Java Doc) void checkVarargs()(Code)(Java Doc) JCExpression classCreatorRest(int newpos, JCExpression encl, List<JCExpression> typeArgs, JCExpression t)(Code)(Java Doc) JCClassDecl classDeclaration(JCModifiers mods, String dc)(Code)(Java Doc) List<JCTree> classOrInterfaceBody(Name className, boolean isInterface)(Code)(Java Doc) List<JCTree> classOrInterfaceBodyDeclaration(Name className, boolean isInterface)(Code)(Java Doc) JCStatement classOrInterfaceOrEnumDeclaration(JCModifiers mods, String dc)(Code)(Java Doc) public JCTree.JCCompilationUnit compilationUnit()(Code)(Java Doc) JCExpression creator(int newpos, List<JCExpression> typeArgs)(Code)(Java Doc) List<JCTree> enumBody(Name enumName)(Code)(Java Doc) JCClassDecl enumDeclaration(JCModifiers mods, String dc)(Code)(Java Doc) JCTree enumeratorDeclaration(Name enumName)(Code)(Java Doc) public JCExpression expression()(Code)(Java Doc) protected StringBuffer foldStrings(JCTree tree)(Code)(Java Doc) List<JCStatement> forInit()(Code)(Java Doc) List<JCExpressionStatement> forUpdate()(Code)(Java Doc) JCVariableDecl formalParameter()(Code)(Java Doc) List<JCVariableDecl> formalParameters()(Code)(Java Doc) public int getEndPos(JCTree tree)(Code)(Java Doc) protected int getErrorEndPos()(Code)(Java Doc) public int getStartPos(JCTree tree)(Code)(Java Doc) Name ident()(Code)(Java Doc) JCExpression illegal(int pos)(Code)(Java Doc) JCExpression illegal()(Code)(Java Doc) JCTree importDeclaration()(Code)(Java Doc) JCExpression innerCreator(int newpos, List<JCExpression> typeArgs, JCExpression encl)(Code)(Java Doc) JCClassDecl interfaceDeclaration(JCModifiers mods, String dc)(Code)(Java Doc) boolean isZero(String s)(Code)(Java Doc) JCExpression literal(Name prefix)(Code)(Java Doc) JCTree methodDeclaratorRest(int pos, JCModifiers mods, JCExpression type, Name name, List<JCTypeParameter> typarams, boolean isInterface, boolean isVoid, String dc)(Code)(Java Doc) JCModifiers modifiersOpt()(Code)(Java Doc) JCModifiers modifiersOpt(JCModifiers partial)(Code)(Java Doc) T moreStatementExpressions(int pos, JCExpression first, T stats)(Code)(Java Doc) JCModifiers optFinal(long flags)(Code)(Java Doc) static int optag(Token token)(Code)(Java Doc) JCExpression parExpression()(Code)(Java Doc) static int prec(Token token)(Code)(Java Doc) public JCExpression qualident()(Code)(Java Doc) List<JCExpression> qualidentList()(Code)(Java Doc) public JCStatement statement()(Code)(Java Doc) protected void storeEnd(JCTree tree, int endpos)(Code)(Java Doc) String strval(Name prefix)(Code)(Java Doc) JCExpression superSuffix(List<JCExpression> typeArgs, JCExpression t)(Code)(Java Doc) List<JCCase> switchBlockStatementGroups()(Code)(Java Doc) JCExpression term(int newmode)(Code)(Java Doc) JCExpression term()(Code)(Java Doc) JCExpression term1()(Code)(Java Doc) JCExpression term1Rest(JCExpression t)(Code)(Java Doc) JCExpression term2()(Code)(Java Doc) JCExpression term2Rest(JCExpression t, int minprec)(Code)(Java Doc) protected JCExpression term3()(Code)(Java Doc) JCExpression termRest(JCExpression t)(Code)(Java Doc) protected T to(T t)(Code)(Java Doc) protected T toP(T t)(Code)(Java Doc) public JCExpression type()(Code)(Java Doc) JCExpression typeArgument()(Code)(Java Doc) List<JCExpression> typeArguments()(Code)(Java Doc) JCTypeApply typeArguments(JCExpression t)(Code)(Java Doc) JCExpression typeArgumentsOpt(JCExpression t)(Code)(Java Doc) List<JCExpression> typeArgumentsOpt()(Code)(Java Doc) List<JCExpression> typeArgumentsOpt(int useMode)(Code)(Java Doc) JCTree typeDeclaration(JCModifiers mods)(Code)(Java Doc) List<JCExpression> typeList()(Code)(Java Doc) JCTypeParameter typeParameter()(Code)(Java Doc) List<JCTypeParameter> typeParametersOpt()(Code)(Java Doc) static int typetag(Token token)(Code)(Java Doc) static int unoptag(Token token)(Code)(Java Doc) JCVariableDecl variableDeclarator(JCModifiers mods, JCExpression type, boolean reqInit, String dc)(Code)(Java Doc) JCVariableDecl variableDeclaratorId(JCModifiers mods, JCExpression type)(Code)(Java Doc) JCVariableDecl variableDeclaratorRest(int pos, JCModifiers mods, JCExpression type, Name name, boolean reqInit, String dc)(Code)(Java Doc) public T variableDeclarators(JCModifiers mods, JCExpression type, T vdefs)(Code)(Java Doc) T variableDeclaratorsRest(int pos, JCModifiers mods, JCExpression type, Name name, boolean reqInit, String dc, T vdefs)(Code)(Java Doc) public JCExpression variableInitializer()(Code)(Java Doc)
|
|
|