id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
5,000
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/javadoc/main/SeeTagImpl.java
SeeTagImpl.findReferenced
private void findReferenced(ClassDocImpl containingClass) { if (where.length() > 0) { if (containingClass != null) { referencedClass = containingClass.findClass(where); } else { referencedClass = docenv().lookupClass(where); } if (r...
java
private void findReferenced(ClassDocImpl containingClass) { if (where.length() > 0) { if (containingClass != null) { referencedClass = containingClass.findClass(where); } else { referencedClass = docenv().lookupClass(where); } if (r...
[ "private", "void", "findReferenced", "(", "ClassDocImpl", "containingClass", ")", "{", "if", "(", "where", ".", "length", "(", ")", ">", "0", ")", "{", "if", "(", "containingClass", "!=", "null", ")", "{", "referencedClass", "=", "containingClass", ".", "f...
Find what is referenced by the see also. If possible, sets referencedClass and referencedMember. @param containingClass the class containing the comment containing the tag. May be null, if, for example, it is a package comment.
[ "Find", "what", "is", "referenced", "by", "the", "see", "also", ".", "If", "possible", "sets", "referencedClass", "and", "referencedMember", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/javadoc/main/SeeTagImpl.java#L320-L385
5,001
google/error-prone-javac
src/jdk.compiler/share/classes/com/sun/tools/javac/main/OptionHelper.java
OptionHelper.newInvalidValueException
Option.InvalidValueException newInvalidValueException(String key, Object... args) { return new Option.InvalidValueException(getLog().localize(PrefixKind.JAVAC, key, args)); }
java
Option.InvalidValueException newInvalidValueException(String key, Object... args) { return new Option.InvalidValueException(getLog().localize(PrefixKind.JAVAC, key, args)); }
[ "Option", ".", "InvalidValueException", "newInvalidValueException", "(", "String", "key", ",", "Object", "...", "args", ")", "{", "return", "new", "Option", ".", "InvalidValueException", "(", "getLog", "(", ")", ".", "localize", "(", "PrefixKind", ".", "JAVAC", ...
Returns a new InvalidValueException, with a localized detail message. @param key the resource key for the message @param args the arguments, if any, for the resource string @return the InvalidValueException
[ "Returns", "a", "new", "InvalidValueException", "with", "a", "localized", "detail", "message", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.compiler/share/classes/com/sun/tools/javac/main/OptionHelper.java#L92-L94
5,002
google/error-prone-javac
src/java.compiler/share/classes/javax/lang/model/util/ElementScanner7.java
ElementScanner7.visitVariable
@Override public R visitVariable(VariableElement e, P p) { return scan(e.getEnclosedElements(), p); }
java
@Override public R visitVariable(VariableElement e, P p) { return scan(e.getEnclosedElements(), p); }
[ "@", "Override", "public", "R", "visitVariable", "(", "VariableElement", "e", ",", "P", "p", ")", "{", "return", "scan", "(", "e", ".", "getEnclosedElements", "(", ")", ",", "p", ")", ";", "}" ]
This implementation scans the enclosed elements. @param e {@inheritDoc} @param p {@inheritDoc} @return the result of scanning
[ "This", "implementation", "scans", "the", "enclosed", "elements", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/java.compiler/share/classes/javax/lang/model/util/ElementScanner7.java#L121-L124
5,003
google/error-prone-javac
src/jdk.compiler/share/classes/com/sun/tools/javac/file/FSInfo.java
FSInfo.instance
public static FSInfo instance(Context context) { FSInfo instance = context.get(FSInfo.class); if (instance == null) instance = new FSInfo(); return instance; }
java
public static FSInfo instance(Context context) { FSInfo instance = context.get(FSInfo.class); if (instance == null) instance = new FSInfo(); return instance; }
[ "public", "static", "FSInfo", "instance", "(", "Context", "context", ")", "{", "FSInfo", "instance", "=", "context", ".", "get", "(", "FSInfo", ".", "class", ")", ";", "if", "(", "instance", "==", "null", ")", "instance", "=", "new", "FSInfo", "(", ")"...
Get the FSInfo instance for this context. @param context the context @return the Paths instance for this context
[ "Get", "the", "FSInfo", "instance", "for", "this", "context", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.compiler/share/classes/com/sun/tools/javac/file/FSInfo.java#L58-L63
5,004
google/error-prone-javac
src/jdk.compiler/share/classes/com/sun/source/util/DocTreePathScanner.java
DocTreePathScanner.scan
@Override public R scan(DocTree tree, P p) { if (tree == null) return null; DocTreePath prev = path; path = new DocTreePath(path, tree); try { return tree.accept(this, p); } finally { path = prev; } }
java
@Override public R scan(DocTree tree, P p) { if (tree == null) return null; DocTreePath prev = path; path = new DocTreePath(path, tree); try { return tree.accept(this, p); } finally { path = prev; } }
[ "@", "Override", "public", "R", "scan", "(", "DocTree", "tree", ",", "P", "p", ")", "{", "if", "(", "tree", "==", "null", ")", "return", "null", ";", "DocTreePath", "prev", "=", "path", ";", "path", "=", "new", "DocTreePath", "(", "path", ",", "tre...
Scans a single node. The current path is updated for the duration of the scan. @param tree the tree to be scanned @param p a value to be passed to visitor methods @return the result returned from the main visitor method
[ "Scans", "a", "single", "node", ".", "The", "current", "path", "is", "updated", "for", "the", "duration", "of", "the", "scan", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.compiler/share/classes/com/sun/source/util/DocTreePathScanner.java#L63-L75
5,005
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.escapeHtmlChars
private static String escapeHtmlChars(String s) { for (int i = 0; i < s.length(); i++) { char ch = s.charAt(i); switch (ch) { // only start building a new string if we need to case '<': case '>': case '&': StringBuilder sb = new StringB...
java
private static String escapeHtmlChars(String s) { for (int i = 0; i < s.length(); i++) { char ch = s.charAt(i); switch (ch) { // only start building a new string if we need to case '<': case '>': case '&': StringBuilder sb = new StringB...
[ "private", "static", "String", "escapeHtmlChars", "(", "String", "s", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "s", ".", "length", "(", ")", ";", "i", "++", ")", "{", "char", "ch", "=", "s", ".", "charAt", "(", "i", ")", ";"...
Given a string, escape all special html characters and return the result. @param s The string to check. @return the original string with all of the HTML characters escaped.
[ "Given", "a", "string", "escape", "all", "special", "html", "characters", "and", "return", "the", "result", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L162-L182
5,006
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.A
public static HtmlTree A(String ref, Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.A, nullCheck(body)); htmltree.addAttr(HtmlAttr.HREF, encodeURL(ref)); return htmltree; }
java
public static HtmlTree A(String ref, Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.A, nullCheck(body)); htmltree.addAttr(HtmlAttr.HREF, encodeURL(ref)); return htmltree; }
[ "public", "static", "HtmlTree", "A", "(", "String", "ref", ",", "Content", "body", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "A", ",", "nullCheck", "(", "body", ")", ")", ";", "htmltree", ".", "addAttr", "(", "HtmlA...
Generates an HTML anchor tag. @param ref reference url for the anchor tag @param body content for the anchor tag @return an HtmlTree object
[ "Generates", "an", "HTML", "anchor", "tag", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L229-L233
5,007
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.A
public static HtmlTree A(HtmlVersion htmlVersion, String attr, Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.A); htmltree.addAttr((htmlVersion == HtmlVersion.HTML4) ? HtmlAttr.NAME : HtmlAttr.ID, nullCheck(attr)); htmltree.addContent(nul...
java
public static HtmlTree A(HtmlVersion htmlVersion, String attr, Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.A); htmltree.addAttr((htmlVersion == HtmlVersion.HTML4) ? HtmlAttr.NAME : HtmlAttr.ID, nullCheck(attr)); htmltree.addContent(nul...
[ "public", "static", "HtmlTree", "A", "(", "HtmlVersion", "htmlVersion", ",", "String", "attr", ",", "Content", "body", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "A", ")", ";", "htmltree", ".", "addAttr", "(", "(", "ht...
Generates an HTML anchor tag with an id or a name attribute and content. @param htmlVersion the version of the generated HTML @param attr name or id attribute for the anchor tag @param body content for the anchor tag @return an HtmlTree object
[ "Generates", "an", "HTML", "anchor", "tag", "with", "an", "id", "or", "a", "name", "attribute", "and", "content", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L243-L251
5,008
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.A_ID
public static HtmlTree A_ID(String id, Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.A); htmltree.addAttr(HtmlAttr.ID, nullCheck(id)); htmltree.addContent(nullCheck(body)); return htmltree; }
java
public static HtmlTree A_ID(String id, Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.A); htmltree.addAttr(HtmlAttr.ID, nullCheck(id)); htmltree.addContent(nullCheck(body)); return htmltree; }
[ "public", "static", "HtmlTree", "A_ID", "(", "String", "id", ",", "Content", "body", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "A", ")", ";", "htmltree", ".", "addAttr", "(", "HtmlAttr", ".", "ID", ",", "nullCheck", ...
Generates an HTML anchor tag with id attribute and a body. @param id id for the anchor tag @param body body for the anchor tag @return an HtmlTree object
[ "Generates", "an", "HTML", "anchor", "tag", "with", "id", "attribute", "and", "a", "body", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L260-L265
5,009
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.A_ID
public static HtmlTree A_ID(HtmlStyle styleClass, String id, Content body) { HtmlTree htmltree = A_ID(id, body); if (styleClass != null) htmltree.addStyle(styleClass); return htmltree; }
java
public static HtmlTree A_ID(HtmlStyle styleClass, String id, Content body) { HtmlTree htmltree = A_ID(id, body); if (styleClass != null) htmltree.addStyle(styleClass); return htmltree; }
[ "public", "static", "HtmlTree", "A_ID", "(", "HtmlStyle", "styleClass", ",", "String", "id", ",", "Content", "body", ")", "{", "HtmlTree", "htmltree", "=", "A_ID", "(", "id", ",", "body", ")", ";", "if", "(", "styleClass", "!=", "null", ")", "htmltree", ...
Generates an HTML anchor tag with a style class, id attribute and a body. @param styleClass stylesheet class for the tag @param id id for the anchor tag @param body body for the anchor tag @return an HtmlTree object
[ "Generates", "an", "HTML", "anchor", "tag", "with", "a", "style", "class", "id", "attribute", "and", "a", "body", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L275-L280
5,010
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.CAPTION
public static HtmlTree CAPTION(Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.CAPTION, nullCheck(body)); return htmltree; }
java
public static HtmlTree CAPTION(Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.CAPTION, nullCheck(body)); return htmltree; }
[ "public", "static", "HtmlTree", "CAPTION", "(", "Content", "body", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "CAPTION", ",", "nullCheck", "(", "body", ")", ")", ";", "return", "htmltree", ";", "}" ]
Generates a CAPTION tag with some content. @param body content for the tag @return an HtmlTree object for the CAPTION tag
[ "Generates", "a", "CAPTION", "tag", "with", "some", "content", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L288-L291
5,011
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.CODE
public static HtmlTree CODE(Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.CODE, nullCheck(body)); return htmltree; }
java
public static HtmlTree CODE(Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.CODE, nullCheck(body)); return htmltree; }
[ "public", "static", "HtmlTree", "CODE", "(", "Content", "body", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "CODE", ",", "nullCheck", "(", "body", ")", ")", ";", "return", "htmltree", ";", "}" ]
Generates a CODE tag with some content. @param body content for the tag @return an HtmlTree object for the CODE tag
[ "Generates", "a", "CODE", "tag", "with", "some", "content", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L299-L302
5,012
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.DD
public static HtmlTree DD(Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.DD, nullCheck(body)); return htmltree; }
java
public static HtmlTree DD(Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.DD, nullCheck(body)); return htmltree; }
[ "public", "static", "HtmlTree", "DD", "(", "Content", "body", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "DD", ",", "nullCheck", "(", "body", ")", ")", ";", "return", "htmltree", ";", "}" ]
Generates a DD tag with some content. @param body content for the tag @return an HtmlTree object for the DD tag
[ "Generates", "a", "DD", "tag", "with", "some", "content", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L310-L313
5,013
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.DL
public static HtmlTree DL(Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.DL, nullCheck(body)); return htmltree; }
java
public static HtmlTree DL(Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.DL, nullCheck(body)); return htmltree; }
[ "public", "static", "HtmlTree", "DL", "(", "Content", "body", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "DL", ",", "nullCheck", "(", "body", ")", ")", ";", "return", "htmltree", ";", "}" ]
Generates a DL tag with some content. @param body content for the tag @return an HtmlTree object for the DL tag
[ "Generates", "a", "DL", "tag", "with", "some", "content", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L321-L324
5,014
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.DT
public static HtmlTree DT(Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.DT, nullCheck(body)); return htmltree; }
java
public static HtmlTree DT(Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.DT, nullCheck(body)); return htmltree; }
[ "public", "static", "HtmlTree", "DT", "(", "Content", "body", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "DT", ",", "nullCheck", "(", "body", ")", ")", ";", "return", "htmltree", ";", "}" ]
Generates a DT tag with some content. @param body content for the tag @return an HtmlTree object for the DT tag
[ "Generates", "a", "DT", "tag", "with", "some", "content", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L357-L360
5,015
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.FOOTER
public static HtmlTree FOOTER() { HtmlTree htmltree = new HtmlTree(HtmlTag.FOOTER); htmltree.setRole(Role.CONTENTINFO); return htmltree; }
java
public static HtmlTree FOOTER() { HtmlTree htmltree = new HtmlTree(HtmlTag.FOOTER); htmltree.setRole(Role.CONTENTINFO); return htmltree; }
[ "public", "static", "HtmlTree", "FOOTER", "(", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "FOOTER", ")", ";", "htmltree", ".", "setRole", "(", "Role", ".", "CONTENTINFO", ")", ";", "return", "htmltree", ";", "}" ]
Generates a FOOTER tag with role attribute. @return an HtmlTree object for the FOOTER tag
[ "Generates", "a", "FOOTER", "tag", "with", "role", "attribute", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L367-L371
5,016
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.HEADER
public static HtmlTree HEADER() { HtmlTree htmltree = new HtmlTree(HtmlTag.HEADER); htmltree.setRole(Role.BANNER); return htmltree; }
java
public static HtmlTree HEADER() { HtmlTree htmltree = new HtmlTree(HtmlTag.HEADER); htmltree.setRole(Role.BANNER); return htmltree; }
[ "public", "static", "HtmlTree", "HEADER", "(", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "HEADER", ")", ";", "htmltree", ".", "setRole", "(", "Role", ".", "BANNER", ")", ";", "return", "htmltree", ";", "}" ]
Generates a HEADER tag with role attribute. @return an HtmlTree object for the HEADER tag
[ "Generates", "a", "HEADER", "tag", "with", "role", "attribute", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L378-L382
5,017
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.HTML
public static HtmlTree HTML(String lang, Content head, Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.HTML, nullCheck(head), nullCheck(body)); htmltree.addAttr(HtmlAttr.LANG, nullCheck(lang)); return htmltree; }
java
public static HtmlTree HTML(String lang, Content head, Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.HTML, nullCheck(head), nullCheck(body)); htmltree.addAttr(HtmlAttr.LANG, nullCheck(lang)); return htmltree; }
[ "public", "static", "HtmlTree", "HTML", "(", "String", "lang", ",", "Content", "head", ",", "Content", "body", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "HTML", ",", "nullCheck", "(", "head", ")", ",", "nullCheck", "(...
Generates an HTML tag with lang attribute. It also adds head and body content to the HTML tree. @param lang language for the HTML document @param head head for the HTML tag @param body body for the HTML tag @return an HtmlTree object for the HTML tag
[ "Generates", "an", "HTML", "tag", "with", "lang", "attribute", ".", "It", "also", "adds", "head", "and", "body", "content", "to", "the", "HTML", "tree", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L450-L454
5,018
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.IFRAME
public static HtmlTree IFRAME(String src, String name, String title) { HtmlTree htmltree = new HtmlTree(HtmlTag.IFRAME); htmltree.addAttr(HtmlAttr.SRC, nullCheck(src)); htmltree.addAttr(HtmlAttr.NAME, nullCheck(name)); htmltree.addAttr(HtmlAttr.TITLE, nullCheck(title)); return ht...
java
public static HtmlTree IFRAME(String src, String name, String title) { HtmlTree htmltree = new HtmlTree(HtmlTag.IFRAME); htmltree.addAttr(HtmlAttr.SRC, nullCheck(src)); htmltree.addAttr(HtmlAttr.NAME, nullCheck(name)); htmltree.addAttr(HtmlAttr.TITLE, nullCheck(title)); return ht...
[ "public", "static", "HtmlTree", "IFRAME", "(", "String", "src", ",", "String", "name", ",", "String", "title", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "IFRAME", ")", ";", "htmltree", ".", "addAttr", "(", "HtmlAttr", ...
Generates a IFRAME tag. @param src the url of the document to be shown in the frame @param name specifies the name of the frame @param title the title for the frame @return an HtmlTree object for the IFRAME tag
[ "Generates", "a", "IFRAME", "tag", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L464-L470
5,019
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.INPUT
public static HtmlTree INPUT(String type, String id) { HtmlTree htmltree = new HtmlTree(HtmlTag.INPUT); htmltree.addAttr(HtmlAttr.TYPE, nullCheck(type)); htmltree.addAttr(HtmlAttr.ID, nullCheck(id)); htmltree.addAttr(HtmlAttr.VALUE, " "); htmltree.addAttr(HtmlAttr.DISABLED, "disa...
java
public static HtmlTree INPUT(String type, String id) { HtmlTree htmltree = new HtmlTree(HtmlTag.INPUT); htmltree.addAttr(HtmlAttr.TYPE, nullCheck(type)); htmltree.addAttr(HtmlAttr.ID, nullCheck(id)); htmltree.addAttr(HtmlAttr.VALUE, " "); htmltree.addAttr(HtmlAttr.DISABLED, "disa...
[ "public", "static", "HtmlTree", "INPUT", "(", "String", "type", ",", "String", "id", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "INPUT", ")", ";", "htmltree", ".", "addAttr", "(", "HtmlAttr", ".", "TYPE", ",", "nullChe...
Generates a INPUT tag with some id. @param type the type of input @param id id for the tag @return an HtmlTree object for the INPUT tag
[ "Generates", "a", "INPUT", "tag", "with", "some", "id", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L479-L486
5,020
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.LINK
public static HtmlTree LINK(String rel, String type, String href, String title) { HtmlTree htmltree = new HtmlTree(HtmlTag.LINK); htmltree.addAttr(HtmlAttr.REL, nullCheck(rel)); htmltree.addAttr(HtmlAttr.TYPE, nullCheck(type)); htmltree.addAttr(HtmlAttr.HREF, nullCheck(href)); ht...
java
public static HtmlTree LINK(String rel, String type, String href, String title) { HtmlTree htmltree = new HtmlTree(HtmlTag.LINK); htmltree.addAttr(HtmlAttr.REL, nullCheck(rel)); htmltree.addAttr(HtmlAttr.TYPE, nullCheck(type)); htmltree.addAttr(HtmlAttr.HREF, nullCheck(href)); ht...
[ "public", "static", "HtmlTree", "LINK", "(", "String", "rel", ",", "String", "type", ",", "String", "href", ",", "String", "title", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "LINK", ")", ";", "htmltree", ".", "addAttr...
Generates a LINK tag with the rel, type, href and title attributes. @param rel relevance of the link @param type type of link @param href the path for the link @param title title for the link @return an HtmlTree object for the LINK tag
[ "Generates", "a", "LINK", "tag", "with", "the", "rel", "type", "href", "and", "title", "attributes", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L521-L528
5,021
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.MAIN
public static HtmlTree MAIN() { HtmlTree htmltree = new HtmlTree(HtmlTag.MAIN); htmltree.setRole(Role.MAIN); return htmltree; }
java
public static HtmlTree MAIN() { HtmlTree htmltree = new HtmlTree(HtmlTag.MAIN); htmltree.setRole(Role.MAIN); return htmltree; }
[ "public", "static", "HtmlTree", "MAIN", "(", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "MAIN", ")", ";", "htmltree", ".", "setRole", "(", "Role", ".", "MAIN", ")", ";", "return", "htmltree", ";", "}" ]
Generates a MAIN tag with role attribute. @return an HtmlTree object for the MAIN tag
[ "Generates", "a", "MAIN", "tag", "with", "role", "attribute", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L535-L539
5,022
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.MAIN
public static HtmlTree MAIN(Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.MAIN, nullCheck(body)); htmltree.setRole(Role.MAIN); return htmltree; }
java
public static HtmlTree MAIN(Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.MAIN, nullCheck(body)); htmltree.setRole(Role.MAIN); return htmltree; }
[ "public", "static", "HtmlTree", "MAIN", "(", "Content", "body", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "MAIN", ",", "nullCheck", "(", "body", ")", ")", ";", "htmltree", ".", "setRole", "(", "Role", ".", "MAIN", "...
Generates a MAIN tag with role attribute and some content. @param body content of the MAIN tag @return an HtmlTree object for the MAIN tag
[ "Generates", "a", "MAIN", "tag", "with", "role", "attribute", "and", "some", "content", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L547-L551
5,023
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.MAIN
public static HtmlTree MAIN(HtmlStyle styleClass, Content body) { HtmlTree htmltree = HtmlTree.MAIN(body); if (styleClass != null) { htmltree.addStyle(styleClass); } return htmltree; }
java
public static HtmlTree MAIN(HtmlStyle styleClass, Content body) { HtmlTree htmltree = HtmlTree.MAIN(body); if (styleClass != null) { htmltree.addStyle(styleClass); } return htmltree; }
[ "public", "static", "HtmlTree", "MAIN", "(", "HtmlStyle", "styleClass", ",", "Content", "body", ")", "{", "HtmlTree", "htmltree", "=", "HtmlTree", ".", "MAIN", "(", "body", ")", ";", "if", "(", "styleClass", "!=", "null", ")", "{", "htmltree", ".", "addS...
Generates a MAIN tag with role attribute, style attribute and some content. @param styleClass style of the MAIN tag @param body content of the MAIN tag @return an HtmlTree object for the MAIN tag
[ "Generates", "a", "MAIN", "tag", "with", "role", "attribute", "style", "attribute", "and", "some", "content", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L560-L566
5,024
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.META
public static HtmlTree META(String httpEquiv, String content, String charSet) { HtmlTree htmltree = new HtmlTree(HtmlTag.META); String contentCharset = content + "; charset=" + charSet; htmltree.addAttr(HtmlAttr.HTTP_EQUIV, nullCheck(httpEquiv)); htmltree.addAttr(HtmlAttr.CONTENT, conten...
java
public static HtmlTree META(String httpEquiv, String content, String charSet) { HtmlTree htmltree = new HtmlTree(HtmlTag.META); String contentCharset = content + "; charset=" + charSet; htmltree.addAttr(HtmlAttr.HTTP_EQUIV, nullCheck(httpEquiv)); htmltree.addAttr(HtmlAttr.CONTENT, conten...
[ "public", "static", "HtmlTree", "META", "(", "String", "httpEquiv", ",", "String", "content", ",", "String", "charSet", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "META", ")", ";", "String", "contentCharset", "=", "content...
Generates a META tag with the http-equiv, content and charset attributes. @param httpEquiv http equiv attribute for the META tag @param content type of content @param charSet character set used @return an HtmlTree object for the META tag
[ "Generates", "a", "META", "tag", "with", "the", "http", "-", "equiv", "content", "and", "charset", "attributes", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L576-L582
5,025
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.META
public static HtmlTree META(String name, String content) { HtmlTree htmltree = new HtmlTree(HtmlTag.META); htmltree.addAttr(HtmlAttr.NAME, nullCheck(name)); htmltree.addAttr(HtmlAttr.CONTENT, nullCheck(content)); return htmltree; }
java
public static HtmlTree META(String name, String content) { HtmlTree htmltree = new HtmlTree(HtmlTag.META); htmltree.addAttr(HtmlAttr.NAME, nullCheck(name)); htmltree.addAttr(HtmlAttr.CONTENT, nullCheck(content)); return htmltree; }
[ "public", "static", "HtmlTree", "META", "(", "String", "name", ",", "String", "content", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "META", ")", ";", "htmltree", ".", "addAttr", "(", "HtmlAttr", ".", "NAME", ",", "null...
Generates a META tag with the name and content attributes. @param name name attribute @param content type of content @return an HtmlTree object for the META tag
[ "Generates", "a", "META", "tag", "with", "the", "name", "and", "content", "attributes", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L591-L596
5,026
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.NAV
public static HtmlTree NAV() { HtmlTree htmltree = new HtmlTree(HtmlTag.NAV); htmltree.setRole(Role.NAVIGATION); return htmltree; }
java
public static HtmlTree NAV() { HtmlTree htmltree = new HtmlTree(HtmlTag.NAV); htmltree.setRole(Role.NAVIGATION); return htmltree; }
[ "public", "static", "HtmlTree", "NAV", "(", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "NAV", ")", ";", "htmltree", ".", "setRole", "(", "Role", ".", "NAVIGATION", ")", ";", "return", "htmltree", ";", "}" ]
Generates a NAV tag with the role attribute. @return an HtmlTree object for the NAV tag
[ "Generates", "a", "NAV", "tag", "with", "the", "role", "attribute", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L603-L607
5,027
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.NOSCRIPT
public static HtmlTree NOSCRIPT(Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.NOSCRIPT, nullCheck(body)); return htmltree; }
java
public static HtmlTree NOSCRIPT(Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.NOSCRIPT, nullCheck(body)); return htmltree; }
[ "public", "static", "HtmlTree", "NOSCRIPT", "(", "Content", "body", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "NOSCRIPT", ",", "nullCheck", "(", "body", ")", ")", ";", "return", "htmltree", ";", "}" ]
Generates a NOSCRIPT tag with some content. @param body content of the noscript tag @return an HtmlTree object for the NOSCRIPT tag
[ "Generates", "a", "NOSCRIPT", "tag", "with", "some", "content", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L615-L618
5,028
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.SCRIPT
public static HtmlTree SCRIPT() { HtmlTree htmltree = new HtmlTree(HtmlTag.SCRIPT); htmltree.addAttr(HtmlAttr.TYPE, "text/javascript"); return htmltree; }
java
public static HtmlTree SCRIPT() { HtmlTree htmltree = new HtmlTree(HtmlTag.SCRIPT); htmltree.addAttr(HtmlAttr.TYPE, "text/javascript"); return htmltree; }
[ "public", "static", "HtmlTree", "SCRIPT", "(", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "SCRIPT", ")", ";", "htmltree", ".", "addAttr", "(", "HtmlAttr", ".", "TYPE", ",", "\"text/javascript\"", ")", ";", "return", "htm...
Generates a SCRIPT tag with the type attribute. @return an HtmlTree object for the SCRIPT tag
[ "Generates", "a", "SCRIPT", "tag", "with", "the", "type", "attribute", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L662-L666
5,029
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.SECTION
public static HtmlTree SECTION() { HtmlTree htmltree = new HtmlTree(HtmlTag.SECTION); htmltree.setRole(Role.REGION); return htmltree; }
java
public static HtmlTree SECTION() { HtmlTree htmltree = new HtmlTree(HtmlTag.SECTION); htmltree.setRole(Role.REGION); return htmltree; }
[ "public", "static", "HtmlTree", "SECTION", "(", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "SECTION", ")", ";", "htmltree", ".", "setRole", "(", "Role", ".", "REGION", ")", ";", "return", "htmltree", ";", "}" ]
Generates a SECTION tag with role attribute. @return an HtmlTree object for the SECTION tag
[ "Generates", "a", "SECTION", "tag", "with", "role", "attribute", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L673-L677
5,030
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.SECTION
public static HtmlTree SECTION(Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.SECTION, nullCheck(body)); htmltree.setRole(Role.REGION); return htmltree; }
java
public static HtmlTree SECTION(Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.SECTION, nullCheck(body)); htmltree.setRole(Role.REGION); return htmltree; }
[ "public", "static", "HtmlTree", "SECTION", "(", "Content", "body", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "SECTION", ",", "nullCheck", "(", "body", ")", ")", ";", "htmltree", ".", "setRole", "(", "Role", ".", "REGI...
Generates a SECTION tag with role attribute and some content. @param body content of the section tag @return an HtmlTree object for the SECTION tag
[ "Generates", "a", "SECTION", "tag", "with", "role", "attribute", "and", "some", "content", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L685-L689
5,031
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.SMALL
public static HtmlTree SMALL(Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.SMALL, nullCheck(body)); return htmltree; }
java
public static HtmlTree SMALL(Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.SMALL, nullCheck(body)); return htmltree; }
[ "public", "static", "HtmlTree", "SMALL", "(", "Content", "body", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "SMALL", ",", "nullCheck", "(", "body", ")", ")", ";", "return", "htmltree", ";", "}" ]
Generates a SMALL tag with some content. @param body content for the tag @return an HtmlTree object for the SMALL tag
[ "Generates", "a", "SMALL", "tag", "with", "some", "content", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L697-L700
5,032
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.SPAN
public static HtmlTree SPAN(HtmlStyle styleClass, Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.SPAN, nullCheck(body)); if (styleClass != null) htmltree.addStyle(styleClass); return htmltree; }
java
public static HtmlTree SPAN(HtmlStyle styleClass, Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.SPAN, nullCheck(body)); if (styleClass != null) htmltree.addStyle(styleClass); return htmltree; }
[ "public", "static", "HtmlTree", "SPAN", "(", "HtmlStyle", "styleClass", ",", "Content", "body", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "SPAN", ",", "nullCheck", "(", "body", ")", ")", ";", "if", "(", "styleClass", ...
Generates a SPAN tag with style class attribute and some content. @param styleClass style class for the tag @param body content for the tag @return an HtmlTree object for the SPAN tag
[ "Generates", "a", "SPAN", "tag", "with", "style", "class", "attribute", "and", "some", "content", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L719-L724
5,033
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.SPAN
public static HtmlTree SPAN(String id, HtmlStyle styleClass, Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.SPAN, nullCheck(body)); htmltree.addAttr(HtmlAttr.ID, nullCheck(id)); if (styleClass != null) htmltree.addStyle(styleClass); return htmltree; }
java
public static HtmlTree SPAN(String id, HtmlStyle styleClass, Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.SPAN, nullCheck(body)); htmltree.addAttr(HtmlAttr.ID, nullCheck(id)); if (styleClass != null) htmltree.addStyle(styleClass); return htmltree; }
[ "public", "static", "HtmlTree", "SPAN", "(", "String", "id", ",", "HtmlStyle", "styleClass", ",", "Content", "body", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "SPAN", ",", "nullCheck", "(", "body", ")", ")", ";", "htm...
Generates a SPAN tag with id and style class attributes. It also encloses a content. @param id the id for the tag @param styleClass stylesheet class for the tag @param body content for the tag @return an HtmlTree object for the SPAN tag
[ "Generates", "a", "SPAN", "tag", "with", "id", "and", "style", "class", "attributes", ".", "It", "also", "encloses", "a", "content", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L735-L741
5,034
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.TABLE
public static HtmlTree TABLE(HtmlStyle styleClass, String summary, Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.TABLE, nullCheck(body)); if (styleClass != null) htmltree.addStyle(styleClass); htmltree.addAttr(HtmlAttr.SUMMARY, nullCheck(summary)); return htmltree;...
java
public static HtmlTree TABLE(HtmlStyle styleClass, String summary, Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.TABLE, nullCheck(body)); if (styleClass != null) htmltree.addStyle(styleClass); htmltree.addAttr(HtmlAttr.SUMMARY, nullCheck(summary)); return htmltree;...
[ "public", "static", "HtmlTree", "TABLE", "(", "HtmlStyle", "styleClass", ",", "String", "summary", ",", "Content", "body", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "TABLE", ",", "nullCheck", "(", "body", ")", ")", ";",...
Generates a Table tag with style class and summary attributes and some content. @param styleClass style of the table @param summary summary for the table @param body content for the table @return an HtmlTree object for the TABLE tag
[ "Generates", "a", "Table", "tag", "with", "style", "class", "and", "summary", "attributes", "and", "some", "content", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L751-L757
5,035
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.TH
public static HtmlTree TH(HtmlStyle styleClass, String scope, Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.TH, nullCheck(body)); if (styleClass != null) htmltree.addStyle(styleClass); htmltree.addAttr(HtmlAttr.SCOPE, nullCheck(scope)); return htmltree; }
java
public static HtmlTree TH(HtmlStyle styleClass, String scope, Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.TH, nullCheck(body)); if (styleClass != null) htmltree.addStyle(styleClass); htmltree.addAttr(HtmlAttr.SCOPE, nullCheck(scope)); return htmltree; }
[ "public", "static", "HtmlTree", "TH", "(", "HtmlStyle", "styleClass", ",", "String", "scope", ",", "Content", "body", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "TH", ",", "nullCheck", "(", "body", ")", ")", ";", "if",...
Generates a TH tag with style class and scope attributes and some content. @param styleClass style for the tag @param scope scope of the tag @param body content for the tag @return an HtmlTree object for the TH tag
[ "Generates", "a", "TH", "tag", "with", "style", "class", "and", "scope", "attributes", "and", "some", "content", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L806-L812
5,036
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.TH
public static HtmlTree TH(String scope, Content body) { return TH(null, scope, body); }
java
public static HtmlTree TH(String scope, Content body) { return TH(null, scope, body); }
[ "public", "static", "HtmlTree", "TH", "(", "String", "scope", ",", "Content", "body", ")", "{", "return", "TH", "(", "null", ",", "scope", ",", "body", ")", ";", "}" ]
Generates a TH tag with scope attribute and some content. @param scope scope of the tag @param body content for the tag @return an HtmlTree object for the TH tag
[ "Generates", "a", "TH", "tag", "with", "scope", "attribute", "and", "some", "content", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L821-L823
5,037
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.TITLE
public static HtmlTree TITLE(Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.TITLE, nullCheck(body)); return htmltree; }
java
public static HtmlTree TITLE(Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.TITLE, nullCheck(body)); return htmltree; }
[ "public", "static", "HtmlTree", "TITLE", "(", "Content", "body", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "TITLE", ",", "nullCheck", "(", "body", ")", ")", ";", "return", "htmltree", ";", "}" ]
Generates a TITLE tag with some content. @param body content for the tag @return an HtmlTree object for the TITLE tag
[ "Generates", "a", "TITLE", "tag", "with", "some", "content", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L842-L845
5,038
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.TR
public static HtmlTree TR(Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.TR, nullCheck(body)); return htmltree; }
java
public static HtmlTree TR(Content body) { HtmlTree htmltree = new HtmlTree(HtmlTag.TR, nullCheck(body)); return htmltree; }
[ "public", "static", "HtmlTree", "TR", "(", "Content", "body", ")", "{", "HtmlTree", "htmltree", "=", "new", "HtmlTree", "(", "HtmlTag", ".", "TR", ",", "nullCheck", "(", "body", ")", ")", ";", "return", "htmltree", ";", "}" ]
Generates a TR tag for an HTML table with some content. @param body content for the tag @return an HtmlTree object for the TR tag
[ "Generates", "a", "TR", "tag", "for", "an", "HTML", "table", "with", "some", "content", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L853-L856
5,039
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.isValid
public boolean isValid() { switch (htmlTag) { case A : return (hasAttr(HtmlAttr.NAME) || hasAttr(HtmlAttr.ID) || (hasAttr(HtmlAttr.HREF) && hasContent())); case BR : return (!hasContent() && (!hasAttrs() || hasAttr(HtmlAttr.CLEAR))); case IFRAM...
java
public boolean isValid() { switch (htmlTag) { case A : return (hasAttr(HtmlAttr.NAME) || hasAttr(HtmlAttr.ID) || (hasAttr(HtmlAttr.HREF) && hasContent())); case BR : return (!hasContent() && (!hasAttrs() || hasAttr(HtmlAttr.CLEAR))); case IFRAM...
[ "public", "boolean", "isValid", "(", ")", "{", "switch", "(", "htmlTag", ")", "{", "case", "A", ":", "return", "(", "hasAttr", "(", "HtmlAttr", ".", "NAME", ")", "||", "hasAttr", "(", "HtmlAttr", ".", "ID", ")", "||", "(", "hasAttr", "(", "HtmlAttr",...
Returns true if the HTML tree is valid. This check is more specific to standard doclet and not exactly similar to W3C specifications. But it ensures HTML validation. @return true if the HTML tree is valid
[ "Returns", "true", "if", "the", "HTML", "tree", "is", "valid", ".", "This", "check", "is", "more", "specific", "to", "standard", "doclet", "and", "not", "exactly", "similar", "to", "W3C", "specifications", ".", "But", "it", "ensures", "HTML", "validation", ...
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L918-L941
5,040
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
HtmlTree.stripHtml
private static String stripHtml(Content body) { String rawString = body.toString(); // remove HTML tags rawString = rawString.replaceAll("\\<.*?>", " "); // consolidate multiple spaces between a word to a single space rawString = rawString.replaceAll("\\b\\s{2,}\\b", " "); ...
java
private static String stripHtml(Content body) { String rawString = body.toString(); // remove HTML tags rawString = rawString.replaceAll("\\<.*?>", " "); // consolidate multiple spaces between a word to a single space rawString = rawString.replaceAll("\\b\\s{2,}\\b", " "); ...
[ "private", "static", "String", "stripHtml", "(", "Content", "body", ")", "{", "String", "rawString", "=", "body", ".", "toString", "(", ")", ";", "// remove HTML tags", "rawString", "=", "rawString", ".", "replaceAll", "(", "\"\\\\<.*?>\"", ",", "\" \"", ")", ...
Given a Content node, strips all html characters and return the result. @param body The content node to check. @return the plain text from the content node
[ "Given", "a", "Content", "node", "strips", "all", "html", "characters", "and", "return", "the", "result", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java#L1001-L1009
5,041
google/error-prone-javac
src/jdk.jdeps/share/classes/com/sun/tools/classfile/Instruction.java
Instruction.getOpcode
public Opcode getOpcode() { int b = getUnsignedByte(0); switch (b) { case Opcode.NONPRIV: case Opcode.PRIV: case Opcode.WIDE: return Opcode.get(b, getUnsignedByte(1)); } return Opcode.get(b); }
java
public Opcode getOpcode() { int b = getUnsignedByte(0); switch (b) { case Opcode.NONPRIV: case Opcode.PRIV: case Opcode.WIDE: return Opcode.get(b, getUnsignedByte(1)); } return Opcode.get(b); }
[ "public", "Opcode", "getOpcode", "(", ")", "{", "int", "b", "=", "getUnsignedByte", "(", "0", ")", ";", "switch", "(", "b", ")", "{", "case", "Opcode", ".", "NONPRIV", ":", "case", "Opcode", ".", "PRIV", ":", "case", "Opcode", ".", "WIDE", ":", "re...
Get the Opcode for this instruction, or null if the instruction is unrecognized.
[ "Get", "the", "Opcode", "for", "this", "instruction", "or", "null", "if", "the", "instruction", "is", "unrecognized", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.jdeps/share/classes/com/sun/tools/classfile/Instruction.java#L198-L207
5,042
google/error-prone-javac
src/jdk.jdeps/share/classes/com/sun/tools/classfile/Instruction.java
Instruction.getMnemonic
public String getMnemonic() { Opcode opcode = getOpcode(); if (opcode == null) return "bytecode " + getUnsignedByte(0); else return opcode.toString().toLowerCase(Locale.US); }
java
public String getMnemonic() { Opcode opcode = getOpcode(); if (opcode == null) return "bytecode " + getUnsignedByte(0); else return opcode.toString().toLowerCase(Locale.US); }
[ "public", "String", "getMnemonic", "(", ")", "{", "Opcode", "opcode", "=", "getOpcode", "(", ")", ";", "if", "(", "opcode", "==", "null", ")", "return", "\"bytecode \"", "+", "getUnsignedByte", "(", "0", ")", ";", "else", "return", "opcode", ".", "toStri...
Get the mnemonic for this instruction, or a default string if the instruction is unrecognized.
[ "Get", "the", "mnemonic", "for", "this", "instruction", "or", "a", "default", "string", "if", "the", "instruction", "is", "unrecognized", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.jdeps/share/classes/com/sun/tools/classfile/Instruction.java#L211-L217
5,043
google/error-prone-javac
src/jdk.jdeps/share/classes/com/sun/tools/classfile/Instruction.java
Instruction.length
public int length() { Opcode opcode = getOpcode(); if (opcode == null) return 1; switch (opcode) { case TABLESWITCH: { int pad = align(pc + 1) - pc; int low = getInt(pad + 4); int high = getInt(pad + 8); ret...
java
public int length() { Opcode opcode = getOpcode(); if (opcode == null) return 1; switch (opcode) { case TABLESWITCH: { int pad = align(pc + 1) - pc; int low = getInt(pad + 4); int high = getInt(pad + 8); ret...
[ "public", "int", "length", "(", ")", "{", "Opcode", "opcode", "=", "getOpcode", "(", ")", ";", "if", "(", "opcode", "==", "null", ")", "return", "1", ";", "switch", "(", "opcode", ")", "{", "case", "TABLESWITCH", ":", "{", "int", "pad", "=", "align...
Get the length, in bytes, of this instruction, including the opcode and all its operands.
[ "Get", "the", "length", "in", "bytes", "of", "this", "instruction", "including", "the", "opcode", "and", "all", "its", "operands", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.jdeps/share/classes/com/sun/tools/classfile/Instruction.java#L221-L242
5,044
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractMemberWriter.java
AbstractMemberWriter.modifierString
protected String modifierString(MemberDoc member) { int ms = member.modifierSpecifier(); int no = Modifier.NATIVE | Modifier.SYNCHRONIZED; return Modifier.toString(ms & ~no); }
java
protected String modifierString(MemberDoc member) { int ms = member.modifierSpecifier(); int no = Modifier.NATIVE | Modifier.SYNCHRONIZED; return Modifier.toString(ms & ~no); }
[ "protected", "String", "modifierString", "(", "MemberDoc", "member", ")", "{", "int", "ms", "=", "member", ".", "modifierSpecifier", "(", ")", ";", "int", "no", "=", "Modifier", ".", "NATIVE", "|", "Modifier", ".", "SYNCHRONIZED", ";", "return", "Modifier", ...
Return a string describing the access modifier flags. Don't include native or synchronized. The modifier names are returned in canonical order, as specified by <em>The Java Language Specification</em>.
[ "Return", "a", "string", "describing", "the", "access", "modifier", "flags", ".", "Don", "t", "include", "native", "or", "synchronized", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractMemberWriter.java#L215-L219
5,045
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractMemberWriter.java
AbstractMemberWriter.addDeprecatedInfo
protected void addDeprecatedInfo(ProgramElementDoc member, Content contentTree) { Content output = (new DeprecatedTaglet()).getTagletOutput(member, writer.getTagletWriterInstance(false)); if (!output.isEmpty()) { Content deprecatedContent = output; Content div = HtmlT...
java
protected void addDeprecatedInfo(ProgramElementDoc member, Content contentTree) { Content output = (new DeprecatedTaglet()).getTagletOutput(member, writer.getTagletWriterInstance(false)); if (!output.isEmpty()) { Content deprecatedContent = output; Content div = HtmlT...
[ "protected", "void", "addDeprecatedInfo", "(", "ProgramElementDoc", "member", ",", "Content", "contentTree", ")", "{", "Content", "output", "=", "(", "new", "DeprecatedTaglet", "(", ")", ")", ".", "getTagletOutput", "(", "member", ",", "writer", ".", "getTagletW...
Add the deprecated information for the given member. @param member the member being documented. @param contentTree the content tree to which the deprecated information will be added.
[ "Add", "the", "deprecated", "information", "for", "the", "given", "member", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractMemberWriter.java#L353-L361
5,046
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractMemberWriter.java
AbstractMemberWriter.getMemberTree
public Content getMemberTree(Content memberTree, boolean isLastContent) { if (isLastContent) return HtmlTree.UL(HtmlStyle.blockListLast, memberTree); else return HtmlTree.UL(HtmlStyle.blockList, memberTree); }
java
public Content getMemberTree(Content memberTree, boolean isLastContent) { if (isLastContent) return HtmlTree.UL(HtmlStyle.blockListLast, memberTree); else return HtmlTree.UL(HtmlStyle.blockList, memberTree); }
[ "public", "Content", "getMemberTree", "(", "Content", "memberTree", ",", "boolean", "isLastContent", ")", "{", "if", "(", "isLastContent", ")", "return", "HtmlTree", ".", "UL", "(", "HtmlStyle", ".", "blockListLast", ",", "memberTree", ")", ";", "else", "retur...
Get the member tree to be documented. @param memberTree the content tree of member to be documented @param isLastContent true if the content to be added is the last content @return a content tree that will be added to the class documentation
[ "Get", "the", "member", "tree", "to", "be", "documented", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractMemberWriter.java#L693-L698
5,047
google/error-prone-javac
src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symtab.java
Symtab.instance
public static Symtab instance(Context context) { Symtab instance = context.get(symtabKey); if (instance == null) instance = new Symtab(context); return instance; }
java
public static Symtab instance(Context context) { Symtab instance = context.get(symtabKey); if (instance == null) instance = new Symtab(context); return instance; }
[ "public", "static", "Symtab", "instance", "(", "Context", "context", ")", "{", "Symtab", "instance", "=", "context", ".", "get", "(", "symtabKey", ")", ";", "if", "(", "instance", "==", "null", ")", "instance", "=", "new", "Symtab", "(", "context", ")", ...
Get the symbol table instance.
[ "Get", "the", "symbol", "table", "instance", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symtab.java#L85-L90
5,048
google/error-prone-javac
src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symtab.java
Symtab.packageExists
public boolean packageExists(ModuleSymbol msym, Name fullname) { Assert.checkNonNull(msym); return lookupPackage(msym, fullname).exists(); }
java
public boolean packageExists(ModuleSymbol msym, Name fullname) { Assert.checkNonNull(msym); return lookupPackage(msym, fullname).exists(); }
[ "public", "boolean", "packageExists", "(", "ModuleSymbol", "msym", ",", "Name", "fullname", ")", "{", "Assert", ".", "checkNonNull", "(", "msym", ")", ";", "return", "lookupPackage", "(", "msym", ",", "fullname", ")", ".", "exists", "(", ")", ";", "}" ]
Check to see if a package exists, given its fully qualified name.
[ "Check", "to", "see", "if", "a", "package", "exists", "given", "its", "fully", "qualified", "name", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symtab.java#L721-L724
5,049
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageUseWriter.java
PackageUseWriter.getNavLinkClassUse
protected Content getNavLinkClassUse() { Content li = HtmlTree.LI(HtmlStyle.navBarCell1Rev, useLabel); return li; }
java
protected Content getNavLinkClassUse() { Content li = HtmlTree.LI(HtmlStyle.navBarCell1Rev, useLabel); return li; }
[ "protected", "Content", "getNavLinkClassUse", "(", ")", "{", "Content", "li", "=", "HtmlTree", ".", "LI", "(", "HtmlStyle", ".", "navBarCell1Rev", ",", "useLabel", ")", ";", "return", "li", ";", "}" ]
Get the use link. @return a content tree for the use link
[ "Get", "the", "use", "link", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageUseWriter.java#L325-L328
5,050
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/ConfigurationImpl.java
ConfigurationImpl.getOverviewPath
@Override public JavaFileObject getOverviewPath() { if (overviewpath != null && getFileManager() instanceof StandardJavaFileManager) { StandardJavaFileManager fm = (StandardJavaFileManager) getFileManager(); return fm.getJavaFileObjects(overviewpath).iterator().next(); } ...
java
@Override public JavaFileObject getOverviewPath() { if (overviewpath != null && getFileManager() instanceof StandardJavaFileManager) { StandardJavaFileManager fm = (StandardJavaFileManager) getFileManager(); return fm.getJavaFileObjects(overviewpath).iterator().next(); } ...
[ "@", "Override", "public", "JavaFileObject", "getOverviewPath", "(", ")", "{", "if", "(", "overviewpath", "!=", "null", "&&", "getFileManager", "(", ")", "instanceof", "StandardJavaFileManager", ")", "{", "StandardJavaFileManager", "fm", "=", "(", "StandardJavaFileM...
Return the path of the overview file or null if it does not exist. @return the path of the overview file or null if it does not exist.
[ "Return", "the", "path", "of", "the", "overview", "file", "or", "null", "if", "it", "does", "not", "exist", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/ConfigurationImpl.java#L436-L443
5,051
google/error-prone-javac
src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Operators.java
Operators.unaryPromotion
Type unaryPromotion(Type t) { Type unboxed = types.unboxedTypeOrType(t); switch (unboxed.getTag()) { case BYTE: case SHORT: case CHAR: return syms.intType; default: return unboxed; } }
java
Type unaryPromotion(Type t) { Type unboxed = types.unboxedTypeOrType(t); switch (unboxed.getTag()) { case BYTE: case SHORT: case CHAR: return syms.intType; default: return unboxed; } }
[ "Type", "unaryPromotion", "(", "Type", "t", ")", "{", "Type", "unboxed", "=", "types", ".", "unboxedTypeOrType", "(", "t", ")", ";", "switch", "(", "unboxed", ".", "getTag", "(", ")", ")", "{", "case", "BYTE", ":", "case", "SHORT", ":", "case", "CHAR...
Perform unary promotion of a type; this routine implements JLS 5.6.1. If the input type is not supported by unary promotion, it is returned unaltered.
[ "Perform", "unary", "promotion", "of", "a", "type", ";", "this", "routine", "implements", "JLS", "5", ".", "6", ".", "1", ".", "If", "the", "input", "type", "is", "not", "supported", "by", "unary", "promotion", "it", "is", "returned", "unaltered", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Operators.java#L108-L118
5,052
google/error-prone-javac
src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Operators.java
Operators.binaryPromotion
Type binaryPromotion(Type t1, Type t2) { Type unboxedT1 = types.unboxedTypeOrType(t1); Type unboxedT2 = types.unboxedTypeOrType(t2); if (unboxedT1.isNumeric() && unboxedT2.isNumeric()) { if (unboxedT1.hasTag(TypeTag.DOUBLE) || unboxedT2.hasTag(TypeTag.DOUBLE)) { retu...
java
Type binaryPromotion(Type t1, Type t2) { Type unboxedT1 = types.unboxedTypeOrType(t1); Type unboxedT2 = types.unboxedTypeOrType(t2); if (unboxedT1.isNumeric() && unboxedT2.isNumeric()) { if (unboxedT1.hasTag(TypeTag.DOUBLE) || unboxedT2.hasTag(TypeTag.DOUBLE)) { retu...
[ "Type", "binaryPromotion", "(", "Type", "t1", ",", "Type", "t2", ")", "{", "Type", "unboxedT1", "=", "types", ".", "unboxedTypeOrType", "(", "t1", ")", ";", "Type", "unboxedT2", "=", "types", ".", "unboxedTypeOrType", "(", "t2", ")", ";", "if", "(", "u...
Perform binary promotion of a pair of types; this routine implements JLS 5.6.2. If the input types are not supported by unary promotion, if such types are identical to a type C, then C is returned, otherwise Object is returned.
[ "Perform", "binary", "promotion", "of", "a", "pair", "of", "types", ";", "this", "routine", "implements", "JLS", "5", ".", "6", ".", "2", ".", "If", "the", "input", "types", "are", "not", "supported", "by", "unary", "promotion", "if", "such", "types", ...
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Operators.java#L125-L144
5,053
google/error-prone-javac
src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Operators.java
Operators.resolveUnary
OperatorSymbol resolveUnary(DiagnosticPosition pos, JCTree.Tag tag, Type op) { return resolve(tag, unaryOperators, unop -> unop.test(op), unop -> unop.resolve(op), () -> reportErrorIfNeeded(pos, tag, op)); }
java
OperatorSymbol resolveUnary(DiagnosticPosition pos, JCTree.Tag tag, Type op) { return resolve(tag, unaryOperators, unop -> unop.test(op), unop -> unop.resolve(op), () -> reportErrorIfNeeded(pos, tag, op)); }
[ "OperatorSymbol", "resolveUnary", "(", "DiagnosticPosition", "pos", ",", "JCTree", ".", "Tag", "tag", ",", "Type", "op", ")", "{", "return", "resolve", "(", "tag", ",", "unaryOperators", ",", "unop", "->", "unop", ".", "test", "(", "op", ")", ",", "unop"...
Entry point for resolving a unary operator given an operator tag and an argument type.
[ "Entry", "point", "for", "resolving", "a", "unary", "operator", "given", "an", "operator", "tag", "and", "an", "argument", "type", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Operators.java#L149-L155
5,054
google/error-prone-javac
src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Operators.java
Operators.resolveBinary
OperatorSymbol resolveBinary(DiagnosticPosition pos, JCTree.Tag tag, Type op1, Type op2) { return resolve(tag, binaryOperators, binop -> binop.test(op1, op2), binop -> binop.resolve(op1, op2), () -> reportErrorIfNeeded(pos, tag, op1, op2)); }
java
OperatorSymbol resolveBinary(DiagnosticPosition pos, JCTree.Tag tag, Type op1, Type op2) { return resolve(tag, binaryOperators, binop -> binop.test(op1, op2), binop -> binop.resolve(op1, op2), () -> reportErrorIfNeeded(pos, tag, op1, op2)); }
[ "OperatorSymbol", "resolveBinary", "(", "DiagnosticPosition", "pos", ",", "JCTree", ".", "Tag", "tag", ",", "Type", "op1", ",", "Type", "op2", ")", "{", "return", "resolve", "(", "tag", ",", "binaryOperators", ",", "binop", "->", "binop", ".", "test", "(",...
Entry point for resolving a binary operator given an operator tag and a pair of argument types.
[ "Entry", "point", "for", "resolving", "a", "binary", "operator", "given", "an", "operator", "tag", "and", "a", "pair", "of", "argument", "types", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Operators.java#L160-L166
5,055
google/error-prone-javac
src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Operators.java
Operators.makeOperator
private OperatorSymbol makeOperator(Name name, List<OperatorType> formals, OperatorType res, int... opcodes) { MethodType opType = new MethodType( formals.stream() .map(o -> o.asType(syms)) .collect(List.collector()), res.asType(sym...
java
private OperatorSymbol makeOperator(Name name, List<OperatorType> formals, OperatorType res, int... opcodes) { MethodType opType = new MethodType( formals.stream() .map(o -> o.asType(syms)) .collect(List.collector()), res.asType(sym...
[ "private", "OperatorSymbol", "makeOperator", "(", "Name", "name", ",", "List", "<", "OperatorType", ">", "formals", ",", "OperatorType", "res", ",", "int", "...", "opcodes", ")", "{", "MethodType", "opType", "=", "new", "MethodType", "(", "formals", ".", "st...
Creates an operator symbol.
[ "Creates", "an", "operator", "symbol", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Operators.java#L185-L192
5,056
google/error-prone-javac
src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Operators.java
Operators.reportErrorIfNeeded
private OperatorSymbol reportErrorIfNeeded(DiagnosticPosition pos, Tag tag, Type... args) { if (Stream.of(args).noneMatch(Type::isErroneous)) { Name opName = operatorName(tag); JCDiagnostic.Error opError = (args.length) == 1 ? Errors.OperatorCantBeApplied(opName, args...
java
private OperatorSymbol reportErrorIfNeeded(DiagnosticPosition pos, Tag tag, Type... args) { if (Stream.of(args).noneMatch(Type::isErroneous)) { Name opName = operatorName(tag); JCDiagnostic.Error opError = (args.length) == 1 ? Errors.OperatorCantBeApplied(opName, args...
[ "private", "OperatorSymbol", "reportErrorIfNeeded", "(", "DiagnosticPosition", "pos", ",", "Tag", "tag", ",", "Type", "...", "args", ")", "{", "if", "(", "Stream", ".", "of", "(", "args", ")", ".", "noneMatch", "(", "Type", "::", "isErroneous", ")", ")", ...
Report an operator lookup error.
[ "Report", "an", "operator", "lookup", "error", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Operators.java#L212-L221
5,057
google/error-prone-javac
src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Operators.java
Operators.initUnaryOperators
private void initUnaryOperators() { initOperators(unaryOperators, new UnaryNumericOperator(Tag.POS) .addUnaryOperator(DOUBLE, DOUBLE, nop) .addUnaryOperator(FLOAT, FLOAT, nop) .addUnaryOperator(LONG, LONG, nop) ...
java
private void initUnaryOperators() { initOperators(unaryOperators, new UnaryNumericOperator(Tag.POS) .addUnaryOperator(DOUBLE, DOUBLE, nop) .addUnaryOperator(FLOAT, FLOAT, nop) .addUnaryOperator(LONG, LONG, nop) ...
[ "private", "void", "initUnaryOperators", "(", ")", "{", "initOperators", "(", "unaryOperators", ",", "new", "UnaryNumericOperator", "(", "Tag", ".", "POS", ")", ".", "addUnaryOperator", "(", "DOUBLE", ",", "DOUBLE", ",", "nop", ")", ".", "addUnaryOperator", "(...
Initialize all unary operators.
[ "Initialize", "all", "unary", "operators", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Operators.java#L653-L688
5,058
google/error-prone-javac
src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Operators.java
Operators.initOperators
@SafeVarargs private final <O extends OperatorHelper> void initOperators(Map<Name, List<O>> opsMap, O... ops) { for (O o : ops) { Name opName = o.name; List<O> helpers = opsMap.getOrDefault(opName, List.nil()); opsMap.put(opName, helpers.prepend(o)); } }
java
@SafeVarargs private final <O extends OperatorHelper> void initOperators(Map<Name, List<O>> opsMap, O... ops) { for (O o : ops) { Name opName = o.name; List<O> helpers = opsMap.getOrDefault(opName, List.nil()); opsMap.put(opName, helpers.prepend(o)); } }
[ "@", "SafeVarargs", "private", "final", "<", "O", "extends", "OperatorHelper", ">", "void", "initOperators", "(", "Map", "<", "Name", ",", "List", "<", "O", ">", ">", "opsMap", ",", "O", "...", "ops", ")", "{", "for", "(", "O", "o", ":", "ops", ")"...
Complete the initialization of an operator helper by storing it into the corresponding operator map.
[ "Complete", "the", "initialization", "of", "an", "operator", "helper", "by", "storing", "it", "into", "the", "corresponding", "operator", "map", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Operators.java#L818-L825
5,059
google/error-prone-javac
src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Operators.java
Operators.initOperatorNames
private void initOperatorNames() { setOperatorName(Tag.POS, "+"); setOperatorName(Tag.NEG, "-"); setOperatorName(Tag.NOT, "!"); setOperatorName(Tag.COMPL, "~"); setOperatorName(Tag.PREINC, "++"); setOperatorName(Tag.PREDEC, "--"); setOperatorName(Tag.POSTINC, "++"...
java
private void initOperatorNames() { setOperatorName(Tag.POS, "+"); setOperatorName(Tag.NEG, "-"); setOperatorName(Tag.NOT, "!"); setOperatorName(Tag.COMPL, "~"); setOperatorName(Tag.PREINC, "++"); setOperatorName(Tag.PREDEC, "--"); setOperatorName(Tag.POSTINC, "++"...
[ "private", "void", "initOperatorNames", "(", ")", "{", "setOperatorName", "(", "Tag", ".", "POS", ",", "\"+\"", ")", ";", "setOperatorName", "(", "Tag", ".", "NEG", ",", "\"-\"", ")", ";", "setOperatorName", "(", "Tag", ".", "NOT", ",", "\"!\"", ")", "...
Initialize operator name array.
[ "Initialize", "operator", "name", "array", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Operators.java#L830-L859
5,060
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/Messages.java
Messages.error
public void error(DocTreePath path, String key, Object... args) { report(ERROR, path, resources.getText(key, args)); }
java
public void error(DocTreePath path, String key, Object... args) { report(ERROR, path, resources.getText(key, args)); }
[ "public", "void", "error", "(", "DocTreePath", "path", ",", "String", "key", ",", "Object", "...", "args", ")", "{", "report", "(", "ERROR", ",", "path", ",", "resources", ".", "getText", "(", "key", ",", "args", ")", ")", ";", "}" ]
Reports an error message to the doclet's reporter. @param path a path identifying the position to be included with the message @param key the name of a resource containing the message to be printed @param args optional arguments to be replaced in the message.
[ "Reports", "an", "error", "message", "to", "the", "doclet", "s", "reporter", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/Messages.java#L83-L85
5,061
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/Messages.java
Messages.notice
public void notice(String key, Object... args) { if (!configuration.quiet) { report(NOTE, resources.getText(key, args)); } }
java
public void notice(String key, Object... args) { if (!configuration.quiet) { report(NOTE, resources.getText(key, args)); } }
[ "public", "void", "notice", "(", "String", "key", ",", "Object", "...", "args", ")", "{", "if", "(", "!", "configuration", ".", "quiet", ")", "{", "report", "(", "NOTE", ",", "resources", ".", "getText", "(", "key", ",", "args", ")", ")", ";", "}",...
Reports an informational notice to the doclet's reporter. @param key the name of a resource containing the message to be printed @param args optional arguments to be replaced in the message.
[ "Reports", "an", "informational", "notice", "to", "the", "doclet", "s", "reporter", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/Messages.java#L134-L138
5,062
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/FrameOutputWriter.java
FrameOutputWriter.addAllPackagesFrameTag
private void addAllPackagesFrameTag(Content contentTree) { HtmlTree frame = HtmlTree.IFRAME(DocPaths.OVERVIEW_FRAME.getPath(), "packageListFrame", configuration.getText("doclet.All_Packages")); HtmlTree leftTop = HtmlTree.DIV(HtmlStyle.leftTop, frame); contentTree.addContent(left...
java
private void addAllPackagesFrameTag(Content contentTree) { HtmlTree frame = HtmlTree.IFRAME(DocPaths.OVERVIEW_FRAME.getPath(), "packageListFrame", configuration.getText("doclet.All_Packages")); HtmlTree leftTop = HtmlTree.DIV(HtmlStyle.leftTop, frame); contentTree.addContent(left...
[ "private", "void", "addAllPackagesFrameTag", "(", "Content", "contentTree", ")", "{", "HtmlTree", "frame", "=", "HtmlTree", ".", "IFRAME", "(", "DocPaths", ".", "OVERVIEW_FRAME", ".", "getPath", "(", ")", ",", "\"packageListFrame\"", ",", "configuration", ".", "...
Add the IFRAME tag for the frame that lists all packages. @param contentTree the content tree to which the information will be added
[ "Add", "the", "IFRAME", "tag", "for", "the", "frame", "that", "lists", "all", "packages", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/FrameOutputWriter.java#L143-L148
5,063
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/FrameOutputWriter.java
FrameOutputWriter.addAllClassesFrameTag
private void addAllClassesFrameTag(Content contentTree) { HtmlTree frame = HtmlTree.IFRAME(DocPaths.ALLCLASSES_FRAME.getPath(), "packageFrame", configuration.getText("doclet.All_classes_and_interfaces")); HtmlTree leftBottom = HtmlTree.DIV(HtmlStyle.leftBottom, frame); contentTre...
java
private void addAllClassesFrameTag(Content contentTree) { HtmlTree frame = HtmlTree.IFRAME(DocPaths.ALLCLASSES_FRAME.getPath(), "packageFrame", configuration.getText("doclet.All_classes_and_interfaces")); HtmlTree leftBottom = HtmlTree.DIV(HtmlStyle.leftBottom, frame); contentTre...
[ "private", "void", "addAllClassesFrameTag", "(", "Content", "contentTree", ")", "{", "HtmlTree", "frame", "=", "HtmlTree", ".", "IFRAME", "(", "DocPaths", ".", "ALLCLASSES_FRAME", ".", "getPath", "(", ")", ",", "\"packageFrame\"", ",", "configuration", ".", "get...
Add the IFRAME tag for the frame that lists all classes. @param contentTree the content tree to which the information will be added
[ "Add", "the", "IFRAME", "tag", "for", "the", "frame", "that", "lists", "all", "classes", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/FrameOutputWriter.java#L155-L160
5,064
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/FrameOutputWriter.java
FrameOutputWriter.addClassFrameTag
private void addClassFrameTag(Content contentTree) { HtmlTree frame = HtmlTree.IFRAME(configuration.topFile.getPath(), "classFrame", configuration.getText("doclet.Package_class_and_interface_descriptions")); frame.addStyle(HtmlStyle.rightIframe); contentTree.addContent(frame); ...
java
private void addClassFrameTag(Content contentTree) { HtmlTree frame = HtmlTree.IFRAME(configuration.topFile.getPath(), "classFrame", configuration.getText("doclet.Package_class_and_interface_descriptions")); frame.addStyle(HtmlStyle.rightIframe); contentTree.addContent(frame); ...
[ "private", "void", "addClassFrameTag", "(", "Content", "contentTree", ")", "{", "HtmlTree", "frame", "=", "HtmlTree", ".", "IFRAME", "(", "configuration", ".", "topFile", ".", "getPath", "(", ")", ",", "\"classFrame\"", ",", "configuration", ".", "getText", "(...
Add the IFRAME tag for the frame that describes the class in detail. @param contentTree the content tree to which the information will be added
[ "Add", "the", "IFRAME", "tag", "for", "the", "frame", "that", "describes", "the", "class", "in", "detail", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/FrameOutputWriter.java#L167-L172
5,065
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/javadoc/main/ModifierFilter.java
ModifierFilter.checkModifier
public boolean checkModifier(int modifierBits) { // Add in the "pseudo-" modifier bit PACKAGE, if needed long fmod = ((modifierBits & ACCESS_BITS) == 0) ? modifierBits | PACKAGE : modifierBits; return ((oneOf == 0) || ((oneOf & fmod) != 0)) && ...
java
public boolean checkModifier(int modifierBits) { // Add in the "pseudo-" modifier bit PACKAGE, if needed long fmod = ((modifierBits & ACCESS_BITS) == 0) ? modifierBits | PACKAGE : modifierBits; return ((oneOf == 0) || ((oneOf & fmod) != 0)) && ...
[ "public", "boolean", "checkModifier", "(", "int", "modifierBits", ")", "{", "// Add in the \"pseudo-\" modifier bit PACKAGE, if needed", "long", "fmod", "=", "(", "(", "modifierBits", "&", "ACCESS_BITS", ")", "==", "0", ")", "?", "modifierBits", "|", "PACKAGE", ":",...
Filter on modifier bits. @param modifierBits Bits as specified in the Modifier class @return Whether the modifierBits pass this filter.
[ "Filter", "on", "modifier", "bits", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/javadoc/main/ModifierFilter.java#L116-L124
5,066
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/AnnotationTypeWriterImpl.java
AnnotationTypeWriterImpl.getNavLinkModule
@Override protected Content getNavLinkModule() { Content linkContent = getModuleLink(utils.elementUtils.getModuleOf(annotationType), contents.moduleLabel); Content li = HtmlTree.LI(linkContent); return li; }
java
@Override protected Content getNavLinkModule() { Content linkContent = getModuleLink(utils.elementUtils.getModuleOf(annotationType), contents.moduleLabel); Content li = HtmlTree.LI(linkContent); return li; }
[ "@", "Override", "protected", "Content", "getNavLinkModule", "(", ")", "{", "Content", "linkContent", "=", "getModuleLink", "(", "utils", ".", "elementUtils", ".", "getModuleOf", "(", "annotationType", ")", ",", "contents", ".", "moduleLabel", ")", ";", "Content...
Get the module link. @return a content tree for the module link
[ "Get", "the", "module", "link", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/AnnotationTypeWriterImpl.java#L96-L102
5,067
google/error-prone-javac
src/jdk.compiler/share/classes/com/sun/tools/sjavac/pubapi/PubMethod.java
PubMethod.asSignatureString
public String asSignatureString() { StringBuilder sb = new StringBuilder(); // <A extends String, Serializable, B extends List> if (typeParams.size() > 0) { sb.append(typeParams.stream() .map(PubApiTypeParam::asString) ...
java
public String asSignatureString() { StringBuilder sb = new StringBuilder(); // <A extends String, Serializable, B extends List> if (typeParams.size() > 0) { sb.append(typeParams.stream() .map(PubApiTypeParam::asString) ...
[ "public", "String", "asSignatureString", "(", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "// <A extends String, Serializable, B extends List>", "if", "(", "typeParams", ".", "size", "(", ")", ">", "0", ")", "{", "sb", ".", "ap...
the only difference being the upper bound of the return type.)
[ "the", "only", "difference", "being", "the", "upper", "bound", "of", "the", "return", "type", ".", ")" ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.compiler/share/classes/com/sun/tools/sjavac/pubapi/PubMethod.java#L63-L81
5,068
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/SerializedFormBuilder.java
SerializedFormBuilder.buildPackageHeader
public void buildPackageHeader(XMLNode node, Content packageSerializedTree) { packageSerializedTree.addContent(writer.getPackageHeader( utils.getPackageName(currentPackage))); }
java
public void buildPackageHeader(XMLNode node, Content packageSerializedTree) { packageSerializedTree.addContent(writer.getPackageHeader( utils.getPackageName(currentPackage))); }
[ "public", "void", "buildPackageHeader", "(", "XMLNode", "node", ",", "Content", "packageSerializedTree", ")", "{", "packageSerializedTree", ".", "addContent", "(", "writer", ".", "getPackageHeader", "(", "utils", ".", "getPackageName", "(", "currentPackage", ")", ")...
Build the package header. @param node the XML element that specifies which components to document @param packageSerializedTree content tree to which the documentation will be added
[ "Build", "the", "package", "header", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/SerializedFormBuilder.java#L203-L206
5,069
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/SerializedFormBuilder.java
SerializedFormBuilder.buildMethodDescription
public void buildMethodDescription(XMLNode node, Content methodsContentTree) { methodWriter.addMemberDescription((MethodDoc) currentMember, methodsContentTree); }
java
public void buildMethodDescription(XMLNode node, Content methodsContentTree) { methodWriter.addMemberDescription((MethodDoc) currentMember, methodsContentTree); }
[ "public", "void", "buildMethodDescription", "(", "XMLNode", "node", ",", "Content", "methodsContentTree", ")", "{", "methodWriter", ".", "addMemberDescription", "(", "(", "MethodDoc", ")", "currentMember", ",", "methodsContentTree", ")", ";", "}" ]
Build method description. @param node the XML element that specifies which components to document @param methodsContentTree content tree to which the documentation will be added
[ "Build", "method", "description", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/SerializedFormBuilder.java#L341-L343
5,070
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/SerializedFormBuilder.java
SerializedFormBuilder.serialClassInclude
private static boolean serialClassInclude(ClassDoc cd) { if (cd.isEnum()) { return false; } try { cd.superclassType(); } catch (NullPointerException e) { //Workaround for null pointer bug in ClassDoc.superclassType(). return false; ...
java
private static boolean serialClassInclude(ClassDoc cd) { if (cd.isEnum()) { return false; } try { cd.superclassType(); } catch (NullPointerException e) { //Workaround for null pointer bug in ClassDoc.superclassType(). return false; ...
[ "private", "static", "boolean", "serialClassInclude", "(", "ClassDoc", "cd", ")", "{", "if", "(", "cd", ".", "isEnum", "(", ")", ")", "{", "return", "false", ";", "}", "try", "{", "cd", ".", "superclassType", "(", ")", ";", "}", "catch", "(", "NullPo...
Return true if the given ClassDoc should be included in the serialized form. @param cd the ClassDoc object to check for serializability.
[ "Return", "true", "if", "the", "given", "ClassDoc", "should", "be", "included", "in", "the", "serialized", "form", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/SerializedFormBuilder.java#L536-L556
5,071
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/ClassTree.java
ClassTree.buildTree
private void buildTree(Iterable<TypeElement> classes) { for (TypeElement aClass : classes) { // In the tree page (e.g overview-tree.html) do not include // information of classes which are deprecated or are a part of a // deprecated package. if (configuration.node...
java
private void buildTree(Iterable<TypeElement> classes) { for (TypeElement aClass : classes) { // In the tree page (e.g overview-tree.html) do not include // information of classes which are deprecated or are a part of a // deprecated package. if (configuration.node...
[ "private", "void", "buildTree", "(", "Iterable", "<", "TypeElement", ">", "classes", ")", "{", "for", "(", "TypeElement", "aClass", ":", "classes", ")", "{", "// In the tree page (e.g overview-tree.html) do not include", "// information of classes which are deprecated or are ...
Generate mapping for the sub-classes for every class in this run. Return the sub-class set for java.lang.Object which will be having sub-class listing for itself and also for each sub-class itself will have their own sub-class lists. @param classes all the classes in this run. @param configuration the current configur...
[ "Generate", "mapping", "for", "the", "sub", "-", "classes", "for", "every", "class", "in", "this", "run", ".", "Return", "the", "sub", "-", "class", "set", "for", "java", ".", "lang", ".", "Object", "which", "will", "be", "having", "sub", "-", "class",...
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/ClassTree.java#L166-L192
5,072
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/ClassTree.java
ClassTree.processInterface
private void processInterface(TypeElement typeElement) { List<? extends TypeMirror> intfacs = typeElement.getInterfaces(); if (!intfacs.isEmpty()) { for (TypeMirror intfac : intfacs) { if (!add(subInterfaces, utils.asTypeElement(intfac), typeElement)) { re...
java
private void processInterface(TypeElement typeElement) { List<? extends TypeMirror> intfacs = typeElement.getInterfaces(); if (!intfacs.isEmpty()) { for (TypeMirror intfac : intfacs) { if (!add(subInterfaces, utils.asTypeElement(intfac), typeElement)) { re...
[ "private", "void", "processInterface", "(", "TypeElement", "typeElement", ")", "{", "List", "<", "?", "extends", "TypeMirror", ">", "intfacs", "=", "typeElement", ".", "getInterfaces", "(", ")", ";", "if", "(", "!", "intfacs", ".", "isEmpty", "(", ")", ")"...
For the interface passed get the interfaces which it extends, and then put this interface in the sub-interface set of those interfaces. Do it recursively. If a interface doesn't have super-interface just attach that interface in the set of all the baseInterfaces. @param typeElement Interface under consideration.
[ "For", "the", "interface", "passed", "get", "the", "interfaces", "which", "it", "extends", "and", "then", "put", "this", "interface", "in", "the", "sub", "-", "interface", "set", "of", "those", "interfaces", ".", "Do", "it", "recursively", ".", "If", "a", ...
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/ClassTree.java#L234-L251
5,073
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/ClassTree.java
ClassTree.add
private boolean add(Map<TypeElement, SortedSet<TypeElement>> map, TypeElement superclass, TypeElement typeElement) { SortedSet<TypeElement> sset = map.computeIfAbsent(superclass, s -> new TreeSet<>(comparator)); if (sset.contains(typeElement)) { return false; } else { ss...
java
private boolean add(Map<TypeElement, SortedSet<TypeElement>> map, TypeElement superclass, TypeElement typeElement) { SortedSet<TypeElement> sset = map.computeIfAbsent(superclass, s -> new TreeSet<>(comparator)); if (sset.contains(typeElement)) { return false; } else { ss...
[ "private", "boolean", "add", "(", "Map", "<", "TypeElement", ",", "SortedSet", "<", "TypeElement", ">", ">", "map", ",", "TypeElement", "superclass", ",", "TypeElement", "typeElement", ")", "{", "SortedSet", "<", "TypeElement", ">", "sset", "=", "map", ".", ...
Adjust the Class Tree. Add the class interface in to it's super classes or super interface's sub-interface set. @param map the entire map. @param superclass java.lang.Object or the super-interface. @param typeElement sub-interface to be mapped. @returns boolean true if class added, false if class already processed.
[ "Adjust", "the", "Class", "Tree", ".", "Add", "the", "class", "interface", "in", "to", "it", "s", "super", "classes", "or", "super", "interface", "s", "sub", "-", "interface", "set", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/ClassTree.java#L262-L270
5,074
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/ClassTree.java
ClassTree.get
private SortedSet<TypeElement> get(Map<TypeElement, SortedSet<TypeElement>> map, TypeElement typeElement) { return map.computeIfAbsent(typeElement, t -> new TreeSet<>(comparator)); }
java
private SortedSet<TypeElement> get(Map<TypeElement, SortedSet<TypeElement>> map, TypeElement typeElement) { return map.computeIfAbsent(typeElement, t -> new TreeSet<>(comparator)); }
[ "private", "SortedSet", "<", "TypeElement", ">", "get", "(", "Map", "<", "TypeElement", ",", "SortedSet", "<", "TypeElement", ">", ">", "map", ",", "TypeElement", "typeElement", ")", "{", "return", "map", ".", "computeIfAbsent", "(", "typeElement", ",", "t",...
From the map return the set of sub-classes or sub-interfaces. If set is null create a new one and return it. @param map The entire map. @param typeElement class for which the sub-class set is requested. @returns a list of sub classes.
[ "From", "the", "map", "return", "the", "set", "of", "sub", "-", "classes", "or", "sub", "-", "interfaces", ".", "If", "set", "is", "null", "create", "a", "new", "one", "and", "return", "it", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/ClassTree.java#L280-L282
5,075
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/ClassTree.java
ClassTree.implementingClasses
public SortedSet<TypeElement> implementingClasses(TypeElement typeElement) { SortedSet<TypeElement> result = get(implementingClasses, typeElement); SortedSet<TypeElement> intfcs = allSubClasses(typeElement, false); // If class x implements a subinterface of typeElement, then it follows ...
java
public SortedSet<TypeElement> implementingClasses(TypeElement typeElement) { SortedSet<TypeElement> result = get(implementingClasses, typeElement); SortedSet<TypeElement> intfcs = allSubClasses(typeElement, false); // If class x implements a subinterface of typeElement, then it follows ...
[ "public", "SortedSet", "<", "TypeElement", ">", "implementingClasses", "(", "TypeElement", "typeElement", ")", "{", "SortedSet", "<", "TypeElement", ">", "result", "=", "get", "(", "implementingClasses", ",", "typeElement", ")", ";", "SortedSet", "<", "TypeElement...
Return the set of classes which implement the interface passed. @param typeElement interface whose implementing-classes set is required.
[ "Return", "the", "set", "of", "classes", "which", "implement", "the", "interface", "passed", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/ClassTree.java#L307-L325
5,076
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/ClassTree.java
ClassTree.allSubClasses
public SortedSet<TypeElement> allSubClasses(TypeElement typeElement, boolean isEnum) { // new entries added to the set are searched as well, this is // really a work queue. List<TypeElement> list = new ArrayList<>(directSubClasses(typeElement, isEnum)); for (int i = 0; i < list.size(); i...
java
public SortedSet<TypeElement> allSubClasses(TypeElement typeElement, boolean isEnum) { // new entries added to the set are searched as well, this is // really a work queue. List<TypeElement> list = new ArrayList<>(directSubClasses(typeElement, isEnum)); for (int i = 0; i < list.size(); i...
[ "public", "SortedSet", "<", "TypeElement", ">", "allSubClasses", "(", "TypeElement", "typeElement", ",", "boolean", "isEnum", ")", "{", "// new entries added to the set are searched as well, this is", "// really a work queue.", "List", "<", "TypeElement", ">", "list", "=", ...
Return a set of all direct or indirect, sub-classes and subInterfaces of the TypeElement argument. @param typeElement TypeElement whose sub-classes or sub-interfaces are requested. @param isEnum true if the subClasses should be forced to come from the enum tree.
[ "Return", "a", "set", "of", "all", "direct", "or", "indirect", "sub", "-", "classes", "and", "subInterfaces", "of", "the", "TypeElement", "argument", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/ClassTree.java#L360-L376
5,077
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/AnnotationTypeBuilder.java
AnnotationTypeBuilder.getInstance
public static AnnotationTypeBuilder getInstance(Context context, TypeElement annotationTypeDoc, AnnotationTypeWriter writer) { return new AnnotationTypeBuilder(context, annotationTypeDoc, writer); }
java
public static AnnotationTypeBuilder getInstance(Context context, TypeElement annotationTypeDoc, AnnotationTypeWriter writer) { return new AnnotationTypeBuilder(context, annotationTypeDoc, writer); }
[ "public", "static", "AnnotationTypeBuilder", "getInstance", "(", "Context", "context", ",", "TypeElement", "annotationTypeDoc", ",", "AnnotationTypeWriter", "writer", ")", "{", "return", "new", "AnnotationTypeBuilder", "(", "context", ",", "annotationTypeDoc", ",", "wri...
Construct a new AnnotationTypeBuilder. @param context the build context. @param annotationTypeDoc the class being documented. @param writer the doclet specific writer. @return an AnnotationTypeBuilder
[ "Construct", "a", "new", "AnnotationTypeBuilder", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/AnnotationTypeBuilder.java#L92-L96
5,078
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/AnnotationTypeBuilder.java
AnnotationTypeBuilder.copyDocFiles
private void copyDocFiles() throws DocletException { PackageElement containingPackage = utils.containingPackage(annotationType); if((configuration.packages == null || !configuration.packages.contains(containingPackage) && !containingPackagesSeen.contains(containingPackage))){ ...
java
private void copyDocFiles() throws DocletException { PackageElement containingPackage = utils.containingPackage(annotationType); if((configuration.packages == null || !configuration.packages.contains(containingPackage) && !containingPackagesSeen.contains(containingPackage))){ ...
[ "private", "void", "copyDocFiles", "(", ")", "throws", "DocletException", "{", "PackageElement", "containingPackage", "=", "utils", ".", "containingPackage", "(", "annotationType", ")", ";", "if", "(", "(", "configuration", ".", "packages", "==", "null", "||", "...
Copy the doc files for the current TypeElement if necessary. @throws DocletException if there is a problem building the documentation
[ "Copy", "the", "doc", "files", "for", "the", "current", "TypeElement", "if", "necessary", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/AnnotationTypeBuilder.java#L137-L148
5,079
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/AnnotationTypeBuilder.java
AnnotationTypeBuilder.buildAnnotationTypeInfo
public void buildAnnotationTypeInfo(XMLNode node, Content annotationContentTree) throws DocletException { Content annotationInfoTree = writer.getAnnotationInfoTreeHeader(); buildChildren(node, annotationInfoTree); annotationContentTree.addContent(writer.getAnnotationInfo(annotationIn...
java
public void buildAnnotationTypeInfo(XMLNode node, Content annotationContentTree) throws DocletException { Content annotationInfoTree = writer.getAnnotationInfoTreeHeader(); buildChildren(node, annotationInfoTree); annotationContentTree.addContent(writer.getAnnotationInfo(annotationIn...
[ "public", "void", "buildAnnotationTypeInfo", "(", "XMLNode", "node", ",", "Content", "annotationContentTree", ")", "throws", "DocletException", "{", "Content", "annotationInfoTree", "=", "writer", ".", "getAnnotationInfoTreeHeader", "(", ")", ";", "buildChildren", "(", ...
Build the annotation information tree documentation. @param node the XML element that specifies which components to document @param annotationContentTree the content tree to which the documentation will be added @throws DocletException if there is a problem building the documentation
[ "Build", "the", "annotation", "information", "tree", "documentation", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/AnnotationTypeBuilder.java#L157-L162
5,080
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/AnnotationTypeBuilder.java
AnnotationTypeBuilder.buildAnnotationTypeFieldDetails
public void buildAnnotationTypeFieldDetails(XMLNode node, Content memberDetailsTree) throws DocletException { configuration.getBuilderFactory(). getAnnotationTypeFieldsBuilder(writer).buildChildren(node, memberDetailsTree); }
java
public void buildAnnotationTypeFieldDetails(XMLNode node, Content memberDetailsTree) throws DocletException { configuration.getBuilderFactory(). getAnnotationTypeFieldsBuilder(writer).buildChildren(node, memberDetailsTree); }
[ "public", "void", "buildAnnotationTypeFieldDetails", "(", "XMLNode", "node", ",", "Content", "memberDetailsTree", ")", "throws", "DocletException", "{", "configuration", ".", "getBuilderFactory", "(", ")", ".", "getAnnotationTypeFieldsBuilder", "(", "writer", ")", ".", ...
Build the annotation type field documentation. @param node the XML element that specifies which components to document @param memberDetailsTree the content tree to which the documentation will be added @throws DocletException if there is a problem building the documentation
[ "Build", "the", "annotation", "type", "field", "documentation", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/AnnotationTypeBuilder.java#L242-L246
5,081
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/AnnotationTypeBuilder.java
AnnotationTypeBuilder.buildAnnotationTypeOptionalMemberDetails
public void buildAnnotationTypeOptionalMemberDetails(XMLNode node, Content memberDetailsTree) throws DocletException { configuration.getBuilderFactory(). getAnnotationTypeOptionalMemberBuilder(writer).buildChildren(node, memberDetailsTree); }
java
public void buildAnnotationTypeOptionalMemberDetails(XMLNode node, Content memberDetailsTree) throws DocletException { configuration.getBuilderFactory(). getAnnotationTypeOptionalMemberBuilder(writer).buildChildren(node, memberDetailsTree); }
[ "public", "void", "buildAnnotationTypeOptionalMemberDetails", "(", "XMLNode", "node", ",", "Content", "memberDetailsTree", ")", "throws", "DocletException", "{", "configuration", ".", "getBuilderFactory", "(", ")", ".", "getAnnotationTypeOptionalMemberBuilder", "(", "writer...
Build the annotation type optional member documentation. @param node the XML element that specifies which components to document @param memberDetailsTree the content tree to which the documentation will be added @throws DocletException if there is a problem building the documentation
[ "Build", "the", "annotation", "type", "optional", "member", "documentation", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/AnnotationTypeBuilder.java#L255-L259
5,082
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/AnnotationTypeBuilder.java
AnnotationTypeBuilder.buildAnnotationTypeRequiredMemberDetails
public void buildAnnotationTypeRequiredMemberDetails(XMLNode node, Content memberDetailsTree) throws DocletException { configuration.getBuilderFactory(). getAnnotationTypeRequiredMemberBuilder(writer).buildChildren(node, memberDetailsTree); }
java
public void buildAnnotationTypeRequiredMemberDetails(XMLNode node, Content memberDetailsTree) throws DocletException { configuration.getBuilderFactory(). getAnnotationTypeRequiredMemberBuilder(writer).buildChildren(node, memberDetailsTree); }
[ "public", "void", "buildAnnotationTypeRequiredMemberDetails", "(", "XMLNode", "node", ",", "Content", "memberDetailsTree", ")", "throws", "DocletException", "{", "configuration", ".", "getBuilderFactory", "(", ")", ".", "getAnnotationTypeRequiredMemberBuilder", "(", "writer...
Build the annotation type required member documentation. @param node the XML element that specifies which components to document @param memberDetailsTree the content tree to which the documentation will be added @throws DocletException if there is a problem building the documentation
[ "Build", "the", "annotation", "type", "required", "member", "documentation", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/AnnotationTypeBuilder.java#L268-L272
5,083
google/error-prone-javac
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/BuilderFactory.java
BuilderFactory.getModuleSummaryBuilder
public AbstractBuilder getModuleSummaryBuilder(ModuleElement mdle, ModuleElement prevModule, ModuleElement nextModule) { return ModuleSummaryBuilder.getInstance(context, mdle, writerFactory.getModuleSummaryWriter(mdle, prevModule, nextModule)); }
java
public AbstractBuilder getModuleSummaryBuilder(ModuleElement mdle, ModuleElement prevModule, ModuleElement nextModule) { return ModuleSummaryBuilder.getInstance(context, mdle, writerFactory.getModuleSummaryWriter(mdle, prevModule, nextModule)); }
[ "public", "AbstractBuilder", "getModuleSummaryBuilder", "(", "ModuleElement", "mdle", ",", "ModuleElement", "prevModule", ",", "ModuleElement", "nextModule", ")", "{", "return", "ModuleSummaryBuilder", ".", "getInstance", "(", "context", ",", "mdle", ",", "writerFactory...
Return the builder that builds the module summary. @param mdle the module being documented. @param prevModule the previous module being documented. @param nextModule the next module being documented. @return the builder that builds the module summary.
[ "Return", "the", "builder", "that", "builds", "the", "module", "summary", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/BuilderFactory.java#L113-L117
5,084
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/javadoc/main/RootDocImpl.java
RootDocImpl.setClasses
private void setClasses(DocEnv env, List<JCClassDecl> classes) { ListBuffer<ClassDocImpl> result = new ListBuffer<>(); for (JCClassDecl def : classes) { //### Do we want modifier check here? if (env.shouldDocument(def.sym)) { ClassDocImpl cd = env.getClassDoc(def....
java
private void setClasses(DocEnv env, List<JCClassDecl> classes) { ListBuffer<ClassDocImpl> result = new ListBuffer<>(); for (JCClassDecl def : classes) { //### Do we want modifier check here? if (env.shouldDocument(def.sym)) { ClassDocImpl cd = env.getClassDoc(def....
[ "private", "void", "setClasses", "(", "DocEnv", "env", ",", "List", "<", "JCClassDecl", ">", "classes", ")", "{", "ListBuffer", "<", "ClassDocImpl", ">", "result", "=", "new", "ListBuffer", "<>", "(", ")", ";", "for", "(", "JCClassDecl", "def", ":", "cla...
Initialize classes information. Those classes are input from command line. @param env the compilation environment @param classes a list of ClassDeclaration
[ "Initialize", "classes", "information", ".", "Those", "classes", "are", "input", "from", "command", "line", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/javadoc/main/RootDocImpl.java#L119-L132
5,085
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/javadoc/main/RootDocImpl.java
RootDocImpl.getOverviewPath
private JavaFileObject getOverviewPath() { for (String[] opt : options) { if (opt[0].equals("-overview")) { if (env.fileManager instanceof StandardJavaFileManager) { StandardJavaFileManager fm = (StandardJavaFileManager) env.fileManager; return...
java
private JavaFileObject getOverviewPath() { for (String[] opt : options) { if (opt[0].equals("-overview")) { if (env.fileManager instanceof StandardJavaFileManager) { StandardJavaFileManager fm = (StandardJavaFileManager) env.fileManager; return...
[ "private", "JavaFileObject", "getOverviewPath", "(", ")", "{", "for", "(", "String", "[", "]", "opt", ":", "options", ")", "{", "if", "(", "opt", "[", "0", "]", ".", "equals", "(", "\"-overview\"", ")", ")", "{", "if", "(", "env", ".", "fileManager",...
Return the path of the overview file and null if it does not exist. @return the path of the overview file and null if it does not exist.
[ "Return", "the", "path", "of", "the", "overview", "file", "and", "null", "if", "it", "does", "not", "exist", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/javadoc/main/RootDocImpl.java#L318-L328
5,086
google/error-prone-javac
src/jdk.compiler/share/classes/com/sun/tools/javac/util/DiagnosticSource.java
DiagnosticSource.getColumnNumber
public int getColumnNumber(int pos, boolean expandTabs) { try { if (findLine(pos)) { int column = 0; for (int bp = lineStart; bp < pos; bp++) { if (bp >= bufLen) { return 0; } if (buf[...
java
public int getColumnNumber(int pos, boolean expandTabs) { try { if (findLine(pos)) { int column = 0; for (int bp = lineStart; bp < pos; bp++) { if (bp >= bufLen) { return 0; } if (buf[...
[ "public", "int", "getColumnNumber", "(", "int", "pos", ",", "boolean", "expandTabs", ")", "{", "try", "{", "if", "(", "findLine", "(", "pos", ")", ")", "{", "int", "column", "=", "0", ";", "for", "(", "int", "bp", "=", "lineStart", ";", "bp", "<", ...
Return the one-based column number associated with a given pos for the current source file. Zero is returned if no column exists for the given position.
[ "Return", "the", "one", "-", "based", "column", "number", "associated", "with", "a", "given", "pos", "for", "the", "current", "source", "file", ".", "Zero", "is", "returned", "if", "no", "column", "exists", "for", "the", "given", "position", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.compiler/share/classes/com/sun/tools/javac/util/DiagnosticSource.java#L90-L110
5,087
google/error-prone-javac
src/jdk.compiler/share/classes/com/sun/tools/javac/util/DiagnosticSource.java
DiagnosticSource.getLine
public String getLine(int pos) { try { if (!findLine(pos)) return null; int lineEnd = lineStart; while (lineEnd < bufLen && buf[lineEnd] != CR && buf[lineEnd] != LF) lineEnd++; if (lineEnd - lineStart == 0) return n...
java
public String getLine(int pos) { try { if (!findLine(pos)) return null; int lineEnd = lineStart; while (lineEnd < bufLen && buf[lineEnd] != CR && buf[lineEnd] != LF) lineEnd++; if (lineEnd - lineStart == 0) return n...
[ "public", "String", "getLine", "(", "int", "pos", ")", "{", "try", "{", "if", "(", "!", "findLine", "(", "pos", ")", ")", "return", "null", ";", "int", "lineEnd", "=", "lineStart", ";", "while", "(", "lineEnd", "<", "bufLen", "&&", "buf", "[", "lin...
Return the content of the line containing a given pos.
[ "Return", "the", "content", "of", "the", "line", "containing", "a", "given", "pos", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.compiler/share/classes/com/sun/tools/javac/util/DiagnosticSource.java#L114-L128
5,088
google/error-prone-javac
src/jdk.compiler/share/classes/com/sun/tools/javac/util/DiagnosticSource.java
DiagnosticSource.findLine
protected boolean findLine(int pos) { if (pos == Position.NOPOS) return false; try { // try and recover buffer from soft reference cache if (buf == null && refBuf != null) buf = refBuf.get(); if (buf == null) { buf = initB...
java
protected boolean findLine(int pos) { if (pos == Position.NOPOS) return false; try { // try and recover buffer from soft reference cache if (buf == null && refBuf != null) buf = refBuf.get(); if (buf == null) { buf = initB...
[ "protected", "boolean", "findLine", "(", "int", "pos", ")", "{", "if", "(", "pos", "==", "Position", ".", "NOPOS", ")", "return", "false", ";", "try", "{", "// try and recover buffer from soft reference cache", "if", "(", "buf", "==", "null", "&&", "refBuf", ...
Find the line in the buffer that contains the current position @param pos Character offset into the buffer
[ "Find", "the", "line", "in", "the", "buffer", "that", "contains", "the", "current", "position" ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.compiler/share/classes/com/sun/tools/javac/util/DiagnosticSource.java#L143-L181
5,089
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
HtmlDocletWriter.getWindowTitle
public String getWindowTitle(String title) { if (configuration.windowtitle.length() > 0) { title += " (" + configuration.windowtitle + ")"; } return title; }
java
public String getWindowTitle(String title) { if (configuration.windowtitle.length() > 0) { title += " (" + configuration.windowtitle + ")"; } return title; }
[ "public", "String", "getWindowTitle", "(", "String", "title", ")", "{", "if", "(", "configuration", ".", "windowtitle", ".", "length", "(", ")", ">", "0", ")", "{", "title", "+=", "\" (\"", "+", "configuration", ".", "windowtitle", "+", "\")\"", ";", "}"...
Get the window title. @param title the title string to construct the complete window title @return the window title string
[ "Get", "the", "window", "title", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java#L341-L346
5,090
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
HtmlDocletWriter.getUserHeaderFooter
public Content getUserHeaderFooter(boolean header) { String content; if (header) { content = replaceDocRootDir(configuration.header); } else { if (configuration.footer.length() != 0) { content = replaceDocRootDir(configuration.footer); } else {...
java
public Content getUserHeaderFooter(boolean header) { String content; if (header) { content = replaceDocRootDir(configuration.header); } else { if (configuration.footer.length() != 0) { content = replaceDocRootDir(configuration.footer); } else {...
[ "public", "Content", "getUserHeaderFooter", "(", "boolean", "header", ")", "{", "String", "content", ";", "if", "(", "header", ")", "{", "content", "=", "replaceDocRootDir", "(", "configuration", ".", "header", ")", ";", "}", "else", "{", "if", "(", "confi...
Get user specified header and the footer. @param header if true print the user provided header else print the user provided footer.
[ "Get", "user", "specified", "header", "and", "the", "footer", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java#L354-L367
5,091
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
HtmlDocletWriter.getNavLinkNext
public Content getNavLinkNext(DocPath next) { Content li; if (next != null) { li = HtmlTree.LI(getHyperLink(next, nextLabel, "", "")); } else li = HtmlTree.LI(nextLabel); return li; }
java
public Content getNavLinkNext(DocPath next) { Content li; if (next != null) { li = HtmlTree.LI(getHyperLink(next, nextLabel, "", "")); } else li = HtmlTree.LI(nextLabel); return li; }
[ "public", "Content", "getNavLinkNext", "(", "DocPath", "next", ")", "{", "Content", "li", ";", "if", "(", "next", "!=", "null", ")", "{", "li", "=", "HtmlTree", ".", "LI", "(", "getHyperLink", "(", "next", ",", "nextLabel", ",", "\"\"", ",", "\"\"", ...
Get link for next file. If next is null, just print the label without linking it anywhere. @param next File name for the next link @return a content tree for the link
[ "Get", "link", "for", "next", "file", ".", "If", "next", "is", "null", "just", "print", "the", "label", "without", "linking", "it", "anywhere", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java#L604-L612
5,092
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
HtmlDocletWriter.getNavShowLists
protected Content getNavShowLists(DocPath link) { DocLink dl = new DocLink(link, path.getPath(), null); Content framesContent = getHyperLink(dl, framesLabel, "", "_top"); Content li = HtmlTree.LI(framesContent); return li; }
java
protected Content getNavShowLists(DocPath link) { DocLink dl = new DocLink(link, path.getPath(), null); Content framesContent = getHyperLink(dl, framesLabel, "", "_top"); Content li = HtmlTree.LI(framesContent); return li; }
[ "protected", "Content", "getNavShowLists", "(", "DocPath", "link", ")", "{", "DocLink", "dl", "=", "new", "DocLink", "(", "link", ",", "path", ".", "getPath", "(", ")", ",", "null", ")", ";", "Content", "framesContent", "=", "getHyperLink", "(", "dl", ",...
Get "FRAMES" link, to switch to the frame version of the output. @param link File to be linked, "index.html" @return a content tree for the link
[ "Get", "FRAMES", "link", "to", "switch", "to", "the", "frame", "version", "of", "the", "output", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java#L620-L625
5,093
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
HtmlDocletWriter.getNavLinkMainTree
protected Content getNavLinkMainTree(String label) { Content mainTreeContent = getHyperLink(pathToRoot.resolve(DocPaths.OVERVIEW_TREE), new StringContent(label)); Content li = HtmlTree.LI(mainTreeContent); return li; }
java
protected Content getNavLinkMainTree(String label) { Content mainTreeContent = getHyperLink(pathToRoot.resolve(DocPaths.OVERVIEW_TREE), new StringContent(label)); Content li = HtmlTree.LI(mainTreeContent); return li; }
[ "protected", "Content", "getNavLinkMainTree", "(", "String", "label", ")", "{", "Content", "mainTreeContent", "=", "getHyperLink", "(", "pathToRoot", ".", "resolve", "(", "DocPaths", ".", "OVERVIEW_TREE", ")", ",", "new", "StringContent", "(", "label", ")", ")",...
Get the overview tree link for the main tree. @param label the label for the link @return a content tree for the link
[ "Get", "the", "overview", "tree", "link", "for", "the", "main", "tree", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java#L677-L682
5,094
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
HtmlDocletWriter.getNavLinkIndex
protected Content getNavLinkIndex() { Content linkContent = getHyperLink(pathToRoot.resolve( (configuration.splitindex ? DocPaths.INDEX_FILES.resolve(DocPaths.indexN(1)) : DocPaths.INDEX_ALL)), indexLabel, "", ""); Content li = HtmlTree...
java
protected Content getNavLinkIndex() { Content linkContent = getHyperLink(pathToRoot.resolve( (configuration.splitindex ? DocPaths.INDEX_FILES.resolve(DocPaths.indexN(1)) : DocPaths.INDEX_ALL)), indexLabel, "", ""); Content li = HtmlTree...
[ "protected", "Content", "getNavLinkIndex", "(", ")", "{", "Content", "linkContent", "=", "getHyperLink", "(", "pathToRoot", ".", "resolve", "(", "(", "configuration", ".", "splitindex", "?", "DocPaths", ".", "INDEX_FILES", ".", "resolve", "(", "DocPaths", ".", ...
Get link for generated class index. @return a content tree for the link
[ "Get", "link", "for", "generated", "class", "index", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java#L726-L734
5,095
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
HtmlDocletWriter.getNavLinkHelp
protected Content getNavLinkHelp() { String helpfile = configuration.helpfile; DocPath helpfilenm; if (helpfile.isEmpty()) { helpfilenm = DocPaths.HELP_DOC; } else { DocFile file = DocFile.createFileForInput(configuration, helpfile); helpfilenm = DocPa...
java
protected Content getNavLinkHelp() { String helpfile = configuration.helpfile; DocPath helpfilenm; if (helpfile.isEmpty()) { helpfilenm = DocPaths.HELP_DOC; } else { DocFile file = DocFile.createFileForInput(configuration, helpfile); helpfilenm = DocPa...
[ "protected", "Content", "getNavLinkHelp", "(", ")", "{", "String", "helpfile", "=", "configuration", ".", "helpfile", ";", "DocPath", "helpfilenm", ";", "if", "(", "helpfile", ".", "isEmpty", "(", ")", ")", "{", "helpfilenm", "=", "DocPaths", ".", "HELP_DOC"...
Get help file link. If user has provided a help file, then generate a link to the user given file, which is already copied to current or destination directory. @return a content tree for the link
[ "Get", "help", "file", "link", ".", "If", "user", "has", "provided", "a", "help", "file", "then", "generate", "a", "link", "to", "the", "user", "given", "file", "which", "is", "already", "copied", "to", "current", "or", "destination", "directory", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java#L743-L756
5,096
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
HtmlDocletWriter.pathString
protected DocPath pathString(ClassDoc cd, DocPath name) { return pathString(cd.containingPackage(), name); }
java
protected DocPath pathString(ClassDoc cd, DocPath name) { return pathString(cd.containingPackage(), name); }
[ "protected", "DocPath", "pathString", "(", "ClassDoc", "cd", ",", "DocPath", "name", ")", "{", "return", "pathString", "(", "cd", ".", "containingPackage", "(", ")", ",", "name", ")", ";", "}" ]
Return the path to the class page for a classdoc. @param cd Class to which the path is requested. @param name Name of the file(doesn't include path).
[ "Return", "the", "path", "to", "the", "class", "page", "for", "a", "classdoc", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java#L914-L916
5,097
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
HtmlDocletWriter.getLink
public Content getLink(LinkInfoImpl linkInfo) { LinkFactoryImpl factory = new LinkFactoryImpl(this); return factory.getLink(linkInfo); }
java
public Content getLink(LinkInfoImpl linkInfo) { LinkFactoryImpl factory = new LinkFactoryImpl(this); return factory.getLink(linkInfo); }
[ "public", "Content", "getLink", "(", "LinkInfoImpl", "linkInfo", ")", "{", "LinkFactoryImpl", "factory", "=", "new", "LinkFactoryImpl", "(", "this", ")", ";", "return", "factory", ".", "getLink", "(", "linkInfo", ")", ";", "}" ]
Return the link to the given class. @param linkInfo the information about the link. @return the link for the given class.
[ "Return", "the", "link", "to", "the", "given", "class", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java#L1017-L1020
5,098
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
HtmlDocletWriter.getTypeParameterLinks
public Content getTypeParameterLinks(LinkInfoImpl linkInfo) { LinkFactoryImpl factory = new LinkFactoryImpl(this); return factory.getTypeParameterLinks(linkInfo, false); }
java
public Content getTypeParameterLinks(LinkInfoImpl linkInfo) { LinkFactoryImpl factory = new LinkFactoryImpl(this); return factory.getTypeParameterLinks(linkInfo, false); }
[ "public", "Content", "getTypeParameterLinks", "(", "LinkInfoImpl", "linkInfo", ")", "{", "LinkFactoryImpl", "factory", "=", "new", "LinkFactoryImpl", "(", "this", ")", ";", "return", "factory", ".", "getTypeParameterLinks", "(", "linkInfo", ",", "false", ")", ";",...
Return the type parameters for the given class. @param linkInfo the information about the link. @return the type for the given class.
[ "Return", "the", "type", "parameters", "for", "the", "given", "class", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java#L1028-L1031
5,099
google/error-prone-javac
src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
HtmlDocletWriter.addStyleSheetProperties
public void addStyleSheetProperties(Content head) { String stylesheetfile = configuration.stylesheetfile; DocPath stylesheet; if (stylesheetfile.isEmpty()) { stylesheet = DocPaths.STYLESHEET; } else { DocFile file = DocFile.createFileForInput(configuration, styles...
java
public void addStyleSheetProperties(Content head) { String stylesheetfile = configuration.stylesheetfile; DocPath stylesheet; if (stylesheetfile.isEmpty()) { stylesheet = DocPaths.STYLESHEET; } else { DocFile file = DocFile.createFileForInput(configuration, styles...
[ "public", "void", "addStyleSheetProperties", "(", "Content", "head", ")", "{", "String", "stylesheetfile", "=", "configuration", ".", "stylesheetfile", ";", "DocPath", "stylesheet", ";", "if", "(", "stylesheetfile", ".", "isEmpty", "(", ")", ")", "{", "styleshee...
Add a link to the stylesheet file. @param head the content tree to which the files will be added
[ "Add", "a", "link", "to", "the", "stylesheet", "file", "." ]
a53d069bbdb2c60232ed3811c19b65e41c3e60e0
https://github.com/google/error-prone-javac/blob/a53d069bbdb2c60232ed3811c19b65e41c3e60e0/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java#L1766-L1785