src/share/classes/com/sun/tools/javac/tree/EndPosTable.java

changeset 1914
0a9f5cbe37d9
parent 1280
5c0b3faeb0b0
child 2525
2eb010b6cb22
     1.1 --- a/src/share/classes/com/sun/tools/javac/tree/EndPosTable.java	Wed Jul 17 19:16:12 2013 -0700
     1.2 +++ b/src/share/classes/com/sun/tools/javac/tree/EndPosTable.java	Fri Jul 19 07:22:53 2013 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -43,10 +43,17 @@
    1.11      public int getEndPos(JCTree tree);
    1.12  
    1.13      /**
    1.14 +     * Store ending position for a tree, the value of which is the greater of
    1.15 +     * last error position and the given ending position.
    1.16 +     * @param tree The tree.
    1.17 +     * @param endpos The ending position to associate with the tree.
    1.18 +     */
    1.19 +    public abstract void storeEnd(JCTree tree, int endpos);
    1.20 +
    1.21 +    /**
    1.22       * Give an old tree and a new tree, the old tree will be replaced with
    1.23       * the new tree, the position of the new tree will be that of the old
    1.24       * tree.
    1.25 -     * not exist.
    1.26       * @param oldtree a JCTree to be replaced
    1.27       * @param newtree a JCTree to be replaced with
    1.28       * @return position of the old tree or Positions.NOPOS for non-existent mapping

mercurial