Skip to content

Commit f1fbb69

Browse files
committed
javadoc corrections
1 parent 33bd6e0 commit f1fbb69

9 files changed

Lines changed: 19 additions & 13 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@
7272
<reports>
7373
</reports>
7474
</plugin>
75+
-->
7576
<plugin>
7677
<groupId>org.apache.maven.plugins</groupId>
7778
<artifactId>maven-javadoc-plugin</artifactId>
7879
<version>2.7</version>
7980
</plugin>
80-
-->
8181
</reportPlugins>
8282
</configuration>
8383
</plugin>

src/main/java/com/scriptbasic/interfaces/InterpreterHook.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* parameter <i>N</i> should run from 0 ... and the hooks will be registered in
2525
* the order they are numbered and executed in backward order. To use the hook
2626
* delivered with jScriptBasic you should configure:
27-
* <p>
27+
* </p>
2828
* <pre>
2929
* hook.0=com.scriptbasic.hooks.RunLimitHook
3030
* </pre>

src/main/java/com/scriptbasic/interfaces/MethodRegistry.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
import java.lang.reflect.Method;
44

55
/**
6+
* <p>
67
* Keep a registry of methods. The Java methods (either class or object method)
78
* can be called from interpreted script. The problem is that Java methods can
89
* be overloaded and BASIC functions can not. To overcome this issue the BASIC
910
* program has to declare a function name for each method it wants to call. For
1011
* example:
11-
* <p>
12+
* </p>
1213
* <pre>
1314
* method sin from java.lang.Math is (double) use as sinus
1415
* </pre>
@@ -19,31 +20,35 @@
1920
* the method will be used as the name of the BASIC function and no alias is
2021
* used. If this part is defined then the alias will be used as the name of the
2122
* function.
23+
* </p>
2224
* <p>
2325
* If there are two methods of the same name, with different signature, you have
2426
* to define different aliases for the different methods.
27+
* </p>
2528
* <p>
2629
* You can use the same alias for different methods in different packages. This
2730
* can be done because the class name or alias for the class name or the
2831
* variable holding the Java object reference stands in front of the method
2932
* name/alias when the registered method is called. This distinguishes the
3033
* different methods of different class even if the aliases or the method names
3134
* are the same.
35+
* </p>
3236
* <p>
3337
* Also note that you can also use aliases for Class names defined in the
3438
* statement {@code use}.
35-
* <p>
39+
* </p>
3640
* The registry keeps track of the
3741
* <ul>
3842
* <li>name of the method,  
3943
* <li>the alias,
4044
* <li>the class and
4145
* <li>the signature.
4246
* </ul>
47+
* <p>
4348
* Thus whenever there is a function call in BASIC to call a Java method in a
4449
* certain class this registry will know which signature to use for the certain
4550
* alias.
46-
* <p>
51+
* </p>
4752
* Aliases can be global or class specific. When an alias is defined for a
4853
* single method then the alias can be used without the class specification.
4954
* This appears in the BASIC code as a simple function call. When a method is

src/main/java/com/scriptbasic/interfaces/NoAccessProxy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* can be embedded in a {@code NoAccessProxy}. Since this proxy implements the NoAccess interface the BASIC program
88
* will not be able to access the field 'target'.
99
*
10-
* @param <T>
10+
* @param <T> the type of the object that can not be accessed by the BASIC program
1111
*/
1212
public class NoAccessProxy<T> implements NoAccess {
1313
public T target;

src/main/java/com/scriptbasic/interfaces/SourceLocationBound.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* line number and the character position on that line.
77
*
88
* @author Peter Verhas
9-
* @date June 15, 2012
9+
* June 15, 2012
1010
*/
1111
public interface SourceLocationBound {
1212
/**

src/main/java/com/scriptbasic/syntax/expression/BasicTagAnalyzer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* brackets some way).
2121
* <p>
2222
* A tag is defined as the following:
23-
* <p>
23+
* </p>
2424
* <pre>
2525
* tag ::= UNOP tag
2626
* TRUE | FALSE

src/main/java/com/scriptbasic/utility/KlassUtility.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static void setField(Object object, String fieldName,
8181
* @param object
8282
* @param fieldName
8383
* @return
84-
* @throws ExecutionException
84+
* @throws BasicRuntimeException
8585
*/
8686
public static Object getField(Object object, String fieldName)
8787
throws BasicRuntimeException {

src/main/java/com/scriptbasic/utility/NumberUtility.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static boolean isPositive(Number a) {
5353
*
5454
* @param a one of the numbers
5555
* @param b the other number
56-
* @return 0 if a == b; 1 if a > b; and -1 if b < a
56+
* @return 0 if a == b; 1 if a &gt; b; and -1 if b &lt; a
5757
*/
5858
public static int compare(Number a, Number b) {
5959
if (a == null && b == null) {

src/main/java/com/scriptbasic/utility/functions/StringFunctions.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,20 @@
33
import com.scriptbasic.api.BasicFunction;
44

55
/**
6+
* <p>
67
* This class implements string functions for the BASIC interpreter. Most of the
78
* methods implement a wrapper for the method of the same name in the class
89
* {@code java.lang.String}. These methods in the class {@code java.lang.String}
910
* are not static and therefore need a String object to work on. The wrapper
1011
* methods are static and take the first argument as the String object to work
1112
* on. In other words if in Java you would write
12-
* <p>
13+
* </p>
1314
* <pre>
1415
* s.xyz(parameterlist)
1516
* </pre>
1617
* <p>
1718
* to call the method {@code xyz()} then in BASIC you will be able to call
18-
* <p>
19+
* </p>
1920
* <pre>
2021
* xyz(s, parameterlist)
2122
* </pre>
@@ -24,7 +25,7 @@
2425
* not repeated here. Other methods, that implement BASIC like string functions
2526
* not implemented in the class {@code java.lang.String} are documented in this
2627
* class.
27-
*
28+
* </p>
2829
* @author Peter Verhas
2930
*/
3031
public class StringFunctions {

0 commit comments

Comments
 (0)