Ignore:
Timestamp:
2015-10-22T02:01:00+02:00 (6 years ago)
Author:
Don-vip
Message:

javadoc fixes

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Diff.java

    r8840 r8926  
    8383    along with this program; if not, write to the Free Software
    8484    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    85 
    8685 */
    87 
    8886public class Diff {
    8987
     
    9492      be needed again later to print the results of the comparison as
    9593      an edit script, if desired.
     94     * @param a first array
     95     * @param b second array
    9696     */
    9797    public Diff(Object[] a, Object[] b) {
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r8924 r8926  
    222222
    223223    /**
    224      * return the modulus in the range [0, n)
     224     * Return the modulus in the range [0, n)
     225     * @param a dividend
     226     * @param n divisor
     227     * @return modulo (remainder of the Euclidian division of a by n)
    225228     */
    226229    public static int mod(int a, int n) {
  • trunk/src/org/openstreetmap/josm/tools/template_engine/TemplateParser.java

    r8811 r8926  
    11// License: GPL. For details, see LICENSE file.
    22package org.openstreetmap.josm.tools.template_engine;
    3 
    43
    54import static org.openstreetmap.josm.tools.I18n.tr;
     
    1514import org.openstreetmap.josm.tools.template_engine.Tokenizer.TokenType;
    1615
    17 
     16/**
     17 * Template parser.
     18 */
    1819public class TemplateParser {
    1920    private final Tokenizer tokenizer;
     
    2223    private static final Collection<TokenType> CONDITION_WITH_APOSTROPHES_END_TOKENS = Arrays.asList(TokenType.APOSTROPHE);
    2324
     25    /**
     26     * Constructs a new {@code TemplateParser}.
     27     * @param template template to parse
     28     */
    2429    public TemplateParser(String template) {
    2530        this.tokenizer = new Tokenizer(template);
     
    3439    }
    3540
     41    /**
     42     * Parse the template.
     43     * @return the resulting template entry
     44     * @throws ParseError if the template cannot be parsed
     45     */
    3646    public TemplateEntry parse() throws ParseError {
    3747        return parseExpression(EXPRESSION_END_TOKENS);
     
    91101                    result.getEntries().add(new SearchExpressionCondition(
    92102                            SearchCompiler.compile(searchExpression.getText()), condition));
    93                 } catch (org.openstreetmap.josm.actions.search.SearchCompiler.ParseError e) {
     103                } catch (SearchCompiler.ParseError e) {
    94104                    throw new ParseError(searchExpression.getPosition(), e);
    95105                }
     
    121131                Match match = SearchCompiler.compile(searchExpression.getText());
    122132                result = new ContextSwitchTemplate(match, template, searchExpression.getPosition());
    123             } catch (org.openstreetmap.josm.actions.search.SearchCompiler.ParseError e) {
     133            } catch (SearchCompiler.ParseError e) {
    124134                throw new ParseError(searchExpression.getPosition(), e);
    125135            }
     
    129139        return result;
    130140    }
    131 
    132141}
Note: See TracChangeset for help on using the changeset viewer.