Skip to content

Commit 1b450f2

Browse files
committed
formatting
1 parent 6a0fb27 commit 1b450f2

File tree

7 files changed

+14
-6
lines changed

7 files changed

+14
-6
lines changed

src/main/java/com/igormaznitsa/prologparser/ParserContext.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525

2626
import java.util.Map;
2727

28+
/**
29+
* Context which provides flags and operator storage for a prolog parser.
30+
*
31+
* @see PrologParser
32+
*/
2833
public interface ParserContext {
2934
/**
3035
* Empty flags, no any flag defined.

src/main/java/com/igormaznitsa/prologparser/ParserContextChain.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131

3232
import static java.util.Arrays.stream;
3333

34+
/**
35+
* Auxiliary class allows to make chain of prolog contexts.
36+
*/
3437
public class ParserContextChain implements ParserContext {
3538
private final ParserContext[] contexts;
3639
private final int tokenizerFlags;

src/main/java/com/igormaznitsa/prologparser/exceptions/CharBufferOverflowException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
package com.igormaznitsa.prologparser.exceptions;
2323

2424
/**
25-
* Specialized exception shows that allowed char buffer size of one buffers in a tokenizer is reached
25+
* Specialized exception shows that allowed char buffer size of one buffers in a tokenizer is reached.
2626
*/
2727
public class CharBufferOverflowException extends PrologParserException {
2828

src/main/java/com/igormaznitsa/prologparser/exceptions/PrologParserException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public PrologParserException(final String text, final int line, final int pos, f
5656
}
5757

5858
/**
59-
* Get the error line
59+
* Get the error line, first line has index 1
6060
*
6161
* @return the error line, -1 if the line is undefined
6262
*/
@@ -65,7 +65,7 @@ public int getLine() {
6565
}
6666

6767
/**
68-
* Get the error line position
68+
* Get the error line position, first position has index 1
6969
*
7070
* @return the error line position, -1 if the position is undefined
7171
*/

src/main/java/com/igormaznitsa/prologparser/terms/OpContainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import java.util.stream.Stream;
3232

3333
/**
34-
* Container of operators which have same name.
34+
* Container of operators which have same name but differently associative.
3535
*/
3636
public final class OpContainer extends SpecServiceCompound {
3737

src/main/java/com/igormaznitsa/prologparser/tokenizer/Op.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public final class Op extends SpecServiceCompound {
126126
));
127127

128128
/**
129-
* Set of operators is specific for SWI Prolog use
129+
* Set of operators is specific for SWI Prolog use.
130130
*/
131131
public static final List<Op> SWI_SPECIFIC = Collections.unmodifiableList(Arrays.asList(
132132
MODIFIERS,

src/main/java/com/igormaznitsa/prologparser/utils/AssertUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static <T> T assertNotNull(final T value) {
4444
}
4545

4646
/**
47-
* Check string is not null and is not empty
47+
* Check string is not null and is not empty.
4848
*
4949
* @param value the string to check
5050
* @return the same value if it is not null and not empty

0 commit comments

Comments
 (0)