Skip to content

Commit 880eca1

Browse files
gselzerctrueden
authored andcommitted
Provide some javadoc to OpMetadata
1 parent 4b20ae9 commit 880eca1

1 file changed

Lines changed: 37 additions & 7 deletions

File tree

scijava/scijava-ops-api/src/main/java/org/scijava/ops/api/OpMetadata.java

Lines changed: 37 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,65 @@
22

33
import java.lang.reflect.Type;
44

5+
/**
6+
* Container for metadata pertaining to an Op <b>instance</b>. This data is
7+
* wrapped up with the Op instance into a {@link RichOp}
8+
*
9+
* @author Gabriel Selzer
10+
* @see RichOp#metadata()
11+
*/
512
public class OpMetadata {
613

14+
/* The functional Type of the Op */
715
private final Type type;
16+
/* The hierarchy of OpInfos used to make the Op */
817
private final InfoChain info;
18+
/* The set of Hints used to in the initial Op call */
919
private final Hints hints;
20+
/* The OpHistory used by the Op */
1021
private final OpHistory history;
1122

12-
public OpMetadata(Type type, InfoChain info,
13-
Hints hints, OpHistory history)
14-
{
23+
public OpMetadata(Type type, InfoChain info, Hints hints, OpHistory history) {
1524
this.type = type;
1625
this.history = history;
1726
this.info = info;
1827
this.hints = hints;
1928
}
2029

21-
public OpHistory history() {
22-
return history;
30+
/**
31+
* Gets the functional {@link Type} of the Op
32+
*
33+
* @return the functional {@link Type} of the Op
34+
*/
35+
public Type type() {
36+
return type;
2337
}
2438

39+
/**
40+
* Gets the hierarchy of {@link OpInfo}s used to make the Op
41+
*
42+
* @return the hierarchy of {@link OpInfo}s used to make the Op
43+
*/
2544
public InfoChain info() {
2645
return info;
2746
}
2847

48+
/**
49+
* Gets the {@link Hints} used in the initial matcher call
50+
*
51+
* @return the {@link Hints} used in the initial matcher call
52+
*/
2953
public Hints hints() {
3054
return hints;
3155
}
3256

33-
public Type type() {
34-
return type;
57+
/**
58+
* Gets the {@link OpHistory} used by this Op
59+
*
60+
* @return the {@link OpHistory} used by this Op
61+
*/
62+
public OpHistory history() {
63+
return history;
3564
}
65+
3666
}

0 commit comments

Comments
 (0)