Skip to content

Commit d4d6170

Browse files
committed
Javadoc
1 parent b576aa0 commit d4d6170

202 files changed

Lines changed: 263 additions & 263 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/examples/ClassDumper.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ final class ClassDumper {
4343
private int[] interfaces; // Names of implemented interfaces
4444
private ConstantPool constantPool; // collection of constants
4545
private Constant[] constantItems; // collection of constants
46-
// private Field[] fields; // class fields, i.e., its variables
46+
// private Field[] fields; // class fields, that is, its variables
4747
// private Method[] methods; // methods defined in the class
4848
private Attribute[] attributes; // attributes defined in the class
4949

@@ -64,7 +64,7 @@ private String constantToString(final int index) {
6464
}
6565

6666
/**
67-
* Parses the given Java class file and return an object that represents the contained data, i.e., constants, methods,
67+
* Parses the given Java class file and return an object that represents the contained data, that is, constants, methods,
6868
* fields and commands. A <em>ClassFormatException</em> is raised, if the file is not a valid .class file. (This does
6969
* not include verification of the byte code as it is performed by the Java interpreter).
7070
*
@@ -81,11 +81,11 @@ public void dump() throws IOException, ClassFormatException {
8181
processConstantPool();
8282
// Get class information
8383
processClassInfo();
84-
// Get interface information, i.e., implemented interfaces
84+
// Get interface information, that is, implemented interfaces
8585
processInterfaces();
86-
// process class fields, i.e., the variables of the class
86+
// process class fields, that is, the variables of the class
8787
processFields();
88-
// process class methods, i.e., the functions in the class
88+
// process class methods, that is, the functions in the class
8989
processMethods();
9090
// process class attributes
9191
processAttributes();
@@ -241,7 +241,7 @@ private void processFieldOrMethod() throws IOException, ClassFormatException {
241241
}
242242

243243
/**
244-
* Processes information about the fields of the class, i.e., its variables.
244+
* Processes information about the fields of the class, that is, its variables.
245245
*
246246
* @throws IOException if an I/O error occurs.
247247
* @throws ClassFormatException

src/examples/Mini/ParseException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public class ParseException extends Exception {
6060

6161
/**
6262
* The following constructors are for use by you for whatever purpose you can think of. Constructing the exception in
63-
* this manner makes the exception behave in the normal way - i.e., as documented in the class "Throwable". The fields
63+
* this manner makes the exception behave in the normal way - that is, as documented in the class "Throwable". The fields
6464
* "errorToken", "expectedTokenSequences", and "tokenImage" do not contain relevant information. The JavaCC generated
6565
* code does not use these constructors.
6666
*/

src/main/java/org/apache/bcel/Const.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2908,7 +2908,7 @@ public final class Const {
29082908
ILLEGAL_TYPE, ILLEGAL_TYPE, ILLEGAL_TYPE };
29092909

29102910
/**
2911-
* Number of byte code operands for each opcode, i.e., number of bytes after the tag byte itself. Indexed by opcode, so NO_OF_OPERANDS[BIPUSH] = the number
2911+
* Number of byte code operands for each opcode, that is, number of bytes after the tag byte itself. Indexed by opcode, so NO_OF_OPERANDS[BIPUSH] = the number
29122912
* of operands for a bipush instruction.
29132913
*/
29142914
static final short[] NO_OF_OPERANDS = { 0/* nop */, 0/* aconst_null */, 0/* iconst_m1 */, 0/* iconst_0 */, 0/* iconst_1 */, 0/* iconst_2 */,

src/main/java/org/apache/bcel/Constants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2368,7 +2368,7 @@ public interface Constants {
23682368
ILLEGAL_TYPE, ILLEGAL_TYPE};
23692369

23702370
/**
2371-
* Number of byte code operands for each opcode, i.e., number of bytes after the tag byte itself. Indexed by opcode, so
2371+
* Number of byte code operands for each opcode, that is, number of bytes after the tag byte itself. Indexed by opcode, so
23722372
* NO_OF_OPERANDS[BIPUSH] = the number of operands for a bipush instruction.
23732373
*/
23742374
short[] NO_OF_OPERANDS = Const.NO_OF_OPERANDS;

src/main/java/org/apache/bcel/Repository.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ public static org.apache.bcel.util.Repository getRepository() {
8080
}
8181

8282
/**
83-
* @return list of super classes of clazz in ascending order, i.e., Object is always the last element
83+
* @return list of super classes of clazz in ascending order, that is, Object is always the last element
8484
* @throws ClassNotFoundException if any of the superclasses can't be found
8585
*/
8686
public static JavaClass[] getSuperClasses(final JavaClass clazz) throws ClassNotFoundException {
8787
return clazz.getSuperClasses();
8888
}
8989

9090
/**
91-
* @return list of super classes of clazz in ascending order, i.e., Object is always the last element.
91+
* @return list of super classes of clazz in ascending order, that is, Object is always the last element.
9292
* @throws ClassNotFoundException if the named class or any of its superclasses can't be found
9393
*/
9494
public static JavaClass[] getSuperClasses(final String className) throws ClassNotFoundException {

src/main/java/org/apache/bcel/classfile/Attribute.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ protected Attribute(final byte tag, final int nameIndex, final int length, final
286286
public abstract void accept(Visitor v);
287287

288288
/**
289-
* Use copy() if you want to have a deep copy(), i.e., with all references copied correctly.
289+
* Use copy() if you want to have a deep copy(), that is, with all references copied correctly.
290290
*
291291
* @return shallow copy of this attribute
292292
*/
@@ -359,9 +359,9 @@ public final int getNameIndex() {
359359
}
360360

361361
/**
362-
* Gets the tag of attribute, i.e., its type.
362+
* Gets the tag of attribute, that is, its type.
363363
*
364-
* @return Tag of attribute, i.e., its type. Value may not be altered, thus there is no setTag() method.
364+
* @return Tag of attribute, that is, its type. Value may not be altered, thus there is no setTag() method.
365365
*/
366366
public final byte getTag() {
367367
return tag;

src/main/java/org/apache/bcel/classfile/BootstrapMethod.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import org.apache.commons.lang3.ArrayUtils;
2929

3030
/**
31-
* This class represents a bootstrap method attribute, i.e., the bootstrap method ref, the number of bootstrap arguments
31+
* This class represents a bootstrap method attribute, that is, the bootstrap method ref, the number of bootstrap arguments
3232
* and an array of the bootstrap arguments.
3333
*
3434
* @see <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.7.23"> The class File Format :

src/main/java/org/apache/bcel/classfile/ClassParser.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public final class ClassParser {
5252
private int accessFlags; // Access rights of parsed class
5353
private int[] interfaces; // Names of implemented interfaces
5454
private ConstantPool constantPool; // collection of constants
55-
private Field[] fields; // class fields, i.e., its variables
55+
private Field[] fields; // class fields, that is, its variables
5656
private Method[] methods; // methods defined in the class
5757
private Attribute[] attributes; // attributes defined in the class
5858
private final boolean isZip; // Loaded from ZIP file
@@ -100,7 +100,7 @@ public ClassParser(final String zipFile, final String fileName) {
100100
}
101101

102102
/**
103-
* Parses the given Java class file and return an object that represents the contained data, i.e., constants, methods,
103+
* Parses the given Java class file and return an object that represents the contained data, that is, constants, methods,
104104
* fields and commands. A <em>ClassFormatException</em> is raised, if the file is not a valid .class file. (This does
105105
* not include verification of the byte code as it is performed by the Java interpreter).
106106
*
@@ -135,12 +135,12 @@ public JavaClass parse() throws IOException, ClassFormatException {
135135
readConstantPool();
136136
// Get class information
137137
readClassInfo();
138-
// Get interface information, i.e., implemented interfaces
138+
// Get interface information, that is, implemented interfaces
139139
readInterfaces();
140140
// -- Read class fields and methods --
141-
// Read class fields, i.e., the variables of the class
141+
// Read class fields, that is, the variables of the class
142142
readFields();
143-
// Read class methods, i.e., the functions in the class
143+
// Read class methods, that is, the functions in the class
144144
readMethods();
145145
// Read class attributes
146146
readAttributes();
@@ -216,7 +216,7 @@ private void readConstantPool() throws IOException, ClassFormatException {
216216
}
217217

218218
/**
219-
* Reads information about the fields of the class, i.e., its variables.
219+
* Reads information about the fields of the class, that is, its variables.
220220
*
221221
* @throws IOException if an I/O error occurs.
222222
* @throws ClassFormatException if a class is malformed or cannot be interpreted as a class file

src/main/java/org/apache/bcel/classfile/Code.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public Code(final Code code) {
9797
code = new byte[codeLength]; // Read byte code
9898
dataInput.readFully(code);
9999
/*
100-
* Read exception table that contains all regions where an exception handler is active, i.e., a try { ... } catch () block.
100+
* Read exception table that contains all regions where an exception handler is active, that is, a try { ... } catch () block.
101101
*/
102102
final int exceptionTableLength = dataInput.readUnsignedShort();
103103
exceptionTable = new CodeException[exceptionTableLength];
@@ -149,7 +149,7 @@ public Code(final int nameIndex, final int length, final int maxStack, final int
149149
* Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class.
150150
* That is, the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.
151151
*
152-
* @param v Visitor object
152+
* @param v Visitor object.
153153
*/
154154
@Override
155155
public void accept(final Visitor v) {
@@ -193,7 +193,7 @@ public Attribute copy(final ConstantPool constantPool) {
193193
/**
194194
* Dumps code attribute to file stream in binary format.
195195
*
196-
* @param file Output file stream
196+
* @param file Output file stream.
197197
* @throws IOException if an I/O error occurs.
198198
*/
199199
@Override

src/main/java/org/apache/bcel/classfile/CodeException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public final class CodeException implements Cloneable, Node, Constants {
6666
private int endPc;
6767

6868
/**
69-
* Starting address of exception handler, i.e., an offset from start of code.
69+
* Starting address of exception handler, that is, an offset from start of code.
7070
*/
7171
private int handlerPc;
7272

@@ -99,7 +99,7 @@ public CodeException(final CodeException c) {
9999
*
100100
* @param startPc Range in the code the exception handler is active, startPc is inclusive while
101101
* @param endPc is exclusive
102-
* @param handlerPc Starting address of exception handler, i.e., an offset from start of code.
102+
* @param handlerPc Starting address of exception handler, that is, an offset from start of code.
103103
* @param catchType If zero the handler catches any exception, otherwise it points to the exception class which is to be
104104
* caught.
105105
*/

0 commit comments

Comments
 (0)