< prev index next >
buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/MemberInfo.java
Print this page
@@ -83,10 +83,12 @@
// the kind of the script annotation - one of the above constants
private MemberInfo.Kind kind;
// script property name
private String name;
+ // documentation for this member
+ private String documentation;
// script property attributes
private int attributes;
// name of the java member
private String javaName;
// type descriptor of the java member
@@ -135,10 +137,24 @@
public void setName(final String name) {
this.name = name;
}
/**
+ * @return the documentation
+ */
+ public String getDocumentation() {
+ return documentation;
+ }
+
+ /**
+ * @param doc the documentation to set
+ */
+ public void setDocumentation(final String doc) {
+ this.documentation = doc;
+ }
+
+ /**
* Tag something as specialized constructor or not
* @param isSpecializedConstructor boolean, true if specialized constructor
*/
public void setIsSpecializedConstructor(final boolean isSpecializedConstructor) {
this.isSpecializedConstructor = isSpecializedConstructor;
< prev index next >