• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

oracle / opengrok / #3721

30 Nov 2023 04:03PM UTC coverage: 66.155% (-9.8%) from 75.915%
#3721

push

vladak
1.12.25

38762 of 58593 relevant lines covered (66.15%)

0.66 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

42.86
/opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/sql/JointSQLXref.java
1
/*
2
 * CDDL HEADER START
3
 *
4
 * The contents of this file are subject to the terms of the
5
 * Common Development and Distribution License (the "License").
6
 * You may not use this file except in compliance with the License.
7
 *
8
 * See LICENSE.txt included in this distribution for the specific
9
 * language governing permissions and limitations under the License.
10
 *
11
 * When distributing Covered Code, include this CDDL HEADER in each
12
 * file and include the License file at LICENSE.txt.
13
 * If applicable, add the following below this CDDL HEADER, with the
14
 * fields enclosed by brackets "[]" replaced with your own identifying
15
 * information: Portions Copyright [yyyy] [name of copyright owner]
16
 *
17
 * CDDL HEADER END
18
 */
19

20
/*
21
 * Copyright (c) 2019, Chris Fraire <cfraire@me.com>.
22
 */
23
package org.opengrok.indexer.analysis.sql;
24

25
import java.util.Set;
26

27
/**
28
 * Represents an abstract base class for SQL xrefers of various dialects.
29
 */
30
abstract class JointSQLXref extends JointSQLLexer {
1✔
31

32
    @Override
33
    public void offer(String value) {
34
        onNonSymbolMatched(value, getYYCHAR());
1✔
35
    }
1✔
36

37
    @Override
38
    public boolean offerSymbol(String value, int captureOffset, boolean ignoreKwd) {
39
        Set<String> keywords = ignoreKwd ? null : getDialectKeywords();
1✔
40
        return onFilteredSymbolMatched(value, getYYCHAR(), keywords, false);
1✔
41
    }
42

43
    /** noop. */
44
    @Override
45
    public void skipSymbol() {
46
    }
×
47

48
    @Override
49
    public void offerKeyword(String value) {
50
        onKeywordMatched(value, getYYCHAR());
×
51
    }
×
52

53
    @Override
54
    public void startNewLine() {
55
        onEndOfLineMatched("\n", getYYCHAR());
×
56
    }
×
57

58
    @Override
59
    public void disjointSpan(String className) {
60
        onDisjointSpanChanged(className, getYYCHAR());
×
61
    }
×
62

63
    /** Gets the value {@code true}. */
64
    protected boolean takeAllContent() {
65
        return true;
×
66
    }
67

68
    /** Gets the value {@code false}. */
69
    protected boolean returnOnSymbol() {
70
        return false;
1✔
71
    }
72
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc