Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_langtools
提交
1b8d85f1
D
dragonwell8_langtools
项目概览
openanolis
/
dragonwell8_langtools
通知
0
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_langtools
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
1b8d85f1
编写于
6月 30, 2011
作者:
K
ksrini
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7059905: (javadoc) promote method visibility for netbeans usage
Reviewed-by: jjg, bpatel
上级
06f58d1e
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
29 addition
and
29 deletion
+29
-29
src/share/classes/com/sun/tools/javadoc/AnnotationTypeDocImpl.java
.../classes/com/sun/tools/javadoc/AnnotationTypeDocImpl.java
+3
-3
src/share/classes/com/sun/tools/javadoc/AnnotationTypeElementDocImpl.java
...s/com/sun/tools/javadoc/AnnotationTypeElementDocImpl.java
+3
-3
src/share/classes/com/sun/tools/javadoc/DocEnv.java
src/share/classes/com/sun/tools/javadoc/DocEnv.java
+17
-17
src/share/classes/com/sun/tools/javadoc/DocImpl.java
src/share/classes/com/sun/tools/javadoc/DocImpl.java
+1
-1
src/share/classes/com/sun/tools/javadoc/JavadocClassReader.java
...are/classes/com/sun/tools/javadoc/JavadocClassReader.java
+2
-2
src/share/classes/com/sun/tools/javadoc/JavadocMemberEnter.java
...are/classes/com/sun/tools/javadoc/JavadocMemberEnter.java
+1
-1
src/share/classes/com/sun/tools/javadoc/PackageDocImpl.java
src/share/classes/com/sun/tools/javadoc/PackageDocImpl.java
+2
-2
未找到文件。
src/share/classes/com/sun/tools/javadoc/AnnotationTypeDocImpl.java
浏览文件 @
1b8d85f1
/*
* Copyright (c) 2003, 20
08
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 20
11
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -46,11 +46,11 @@ import com.sun.tools.javac.util.Position;
public
class
AnnotationTypeDocImpl
extends
ClassDocImpl
implements
AnnotationTypeDoc
{
AnnotationTypeDocImpl
(
DocEnv
env
,
ClassSymbol
sym
)
{
public
AnnotationTypeDocImpl
(
DocEnv
env
,
ClassSymbol
sym
)
{
this
(
env
,
sym
,
null
,
null
,
null
);
}
AnnotationTypeDocImpl
(
DocEnv
env
,
ClassSymbol
sym
,
public
AnnotationTypeDocImpl
(
DocEnv
env
,
ClassSymbol
sym
,
String
doc
,
JCClassDecl
tree
,
Position
.
LineMap
lineMap
)
{
super
(
env
,
sym
,
doc
,
tree
,
lineMap
);
}
...
...
src/share/classes/com/sun/tools/javadoc/AnnotationTypeElementDocImpl.java
浏览文件 @
1b8d85f1
/*
* Copyright (c) 2003, 20
05
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 20
11
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -45,11 +45,11 @@ import com.sun.tools.javac.util.Position;
public
class
AnnotationTypeElementDocImpl
extends
MethodDocImpl
implements
AnnotationTypeElementDoc
{
AnnotationTypeElementDocImpl
(
DocEnv
env
,
MethodSymbol
sym
)
{
public
AnnotationTypeElementDocImpl
(
DocEnv
env
,
MethodSymbol
sym
)
{
super
(
env
,
sym
);
}
AnnotationTypeElementDocImpl
(
DocEnv
env
,
MethodSymbol
sym
,
public
AnnotationTypeElementDocImpl
(
DocEnv
env
,
MethodSymbol
sym
,
String
doc
,
JCMethodDecl
tree
,
Position
.
LineMap
lineMap
)
{
super
(
env
,
sym
,
doc
,
tree
,
lineMap
);
}
...
...
src/share/classes/com/sun/tools/javadoc/DocEnv.java
浏览文件 @
1b8d85f1
/*
* Copyright (c) 2000, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 201
1
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -84,7 +84,7 @@ public class DocEnv {
final
Symbol
externalizableSym
;
/** Access filter (public, protected, ...). */
ModifierFilter
showAccess
;
protected
ModifierFilter
showAccess
;
/** True if we are using a sentence BreakIterator. */
boolean
breakiterator
;
...
...
@@ -102,7 +102,7 @@ public class DocEnv {
boolean
docClasses
=
false
;
/** Does the doclet only expect pre-1.5 doclet API? */
boolean
legacyDoclet
=
true
;
protected
boolean
legacyDoclet
=
true
;
/**
* Set this to true if you would like to not emit any errors, warnings and
...
...
@@ -115,7 +115,7 @@ public class DocEnv {
*
* @param context Context for this javadoc instance.
*/
pr
ivate
DocEnv
(
Context
context
)
{
pr
otected
DocEnv
(
Context
context
)
{
context
.
put
(
docEnvKey
,
this
);
messager
=
Messager
.
instance0
(
context
);
...
...
@@ -517,7 +517,7 @@ public class DocEnv {
messager
.
exit
();
}
pr
ivate
Map
<
PackageSymbol
,
PackageDocImpl
>
packageMap
=
pr
otected
Map
<
PackageSymbol
,
PackageDocImpl
>
packageMap
=
new
HashMap
<
PackageSymbol
,
PackageDocImpl
>();
/**
* Return the PackageDoc of this package symbol.
...
...
@@ -545,12 +545,12 @@ public class DocEnv {
}
pr
ivate
Map
<
ClassSymbol
,
ClassDocImpl
>
classMap
=
pr
otected
Map
<
ClassSymbol
,
ClassDocImpl
>
classMap
=
new
HashMap
<
ClassSymbol
,
ClassDocImpl
>();
/**
* Return the ClassDoc (or a subtype) of this class symbol.
*/
ClassDocImpl
getClassDoc
(
ClassSymbol
clazz
)
{
public
ClassDocImpl
getClassDoc
(
ClassSymbol
clazz
)
{
ClassDocImpl
result
=
classMap
.
get
(
clazz
);
if
(
result
!=
null
)
return
result
;
if
(
isAnnotationType
(
clazz
))
{
...
...
@@ -565,7 +565,7 @@ public class DocEnv {
/**
* Create the ClassDoc (or a subtype) for a class symbol.
*/
void
makeClassDoc
(
ClassSymbol
clazz
,
String
docComment
,
JCClassDecl
tree
,
Position
.
LineMap
lineMap
)
{
protected
void
makeClassDoc
(
ClassSymbol
clazz
,
String
docComment
,
JCClassDecl
tree
,
Position
.
LineMap
lineMap
)
{
ClassDocImpl
result
=
classMap
.
get
(
clazz
);
if
(
result
!=
null
)
{
if
(
docComment
!=
null
)
result
.
setRawCommentText
(
docComment
);
...
...
@@ -580,20 +580,20 @@ public class DocEnv {
classMap
.
put
(
clazz
,
result
);
}
pr
ivate
static
boolean
isAnnotationType
(
ClassSymbol
clazz
)
{
pr
otected
static
boolean
isAnnotationType
(
ClassSymbol
clazz
)
{
return
ClassDocImpl
.
isAnnotationType
(
clazz
);
}
pr
ivate
static
boolean
isAnnotationType
(
JCClassDecl
tree
)
{
pr
otected
static
boolean
isAnnotationType
(
JCClassDecl
tree
)
{
return
(
tree
.
mods
.
flags
&
Flags
.
ANNOTATION
)
!=
0
;
}
pr
ivate
Map
<
VarSymbol
,
FieldDocImpl
>
fieldMap
=
pr
otected
Map
<
VarSymbol
,
FieldDocImpl
>
fieldMap
=
new
HashMap
<
VarSymbol
,
FieldDocImpl
>();
/**
* Return the FieldDoc of this var symbol.
*/
FieldDocImpl
getFieldDoc
(
VarSymbol
var
)
{
public
FieldDocImpl
getFieldDoc
(
VarSymbol
var
)
{
FieldDocImpl
result
=
fieldMap
.
get
(
var
);
if
(
result
!=
null
)
return
result
;
result
=
new
FieldDocImpl
(
this
,
var
);
...
...
@@ -603,7 +603,7 @@ public class DocEnv {
/**
* Create a FieldDoc for a var symbol.
*/
void
makeFieldDoc
(
VarSymbol
var
,
String
docComment
,
JCVariableDecl
tree
,
Position
.
LineMap
lineMap
)
{
protected
void
makeFieldDoc
(
VarSymbol
var
,
String
docComment
,
JCVariableDecl
tree
,
Position
.
LineMap
lineMap
)
{
FieldDocImpl
result
=
fieldMap
.
get
(
var
);
if
(
result
!=
null
)
{
if
(
docComment
!=
null
)
result
.
setRawCommentText
(
docComment
);
...
...
@@ -614,13 +614,13 @@ public class DocEnv {
}
}
pr
ivate
Map
<
MethodSymbol
,
ExecutableMemberDocImpl
>
methodMap
=
pr
otected
Map
<
MethodSymbol
,
ExecutableMemberDocImpl
>
methodMap
=
new
HashMap
<
MethodSymbol
,
ExecutableMemberDocImpl
>();
/**
* Create a MethodDoc for this MethodSymbol.
* Should be called only on symbols representing methods.
*/
void
makeMethodDoc
(
MethodSymbol
meth
,
String
docComment
,
protected
void
makeMethodDoc
(
MethodSymbol
meth
,
String
docComment
,
JCMethodDecl
tree
,
Position
.
LineMap
lineMap
)
{
MethodDocImpl
result
=
(
MethodDocImpl
)
methodMap
.
get
(
meth
);
if
(
result
!=
null
)
{
...
...
@@ -649,7 +649,7 @@ public class DocEnv {
* Create the ConstructorDoc for a MethodSymbol.
* Should be called only on symbols representing constructors.
*/
void
makeConstructorDoc
(
MethodSymbol
meth
,
String
docComment
,
protected
void
makeConstructorDoc
(
MethodSymbol
meth
,
String
docComment
,
JCMethodDecl
tree
,
Position
.
LineMap
lineMap
)
{
ConstructorDocImpl
result
=
(
ConstructorDocImpl
)
methodMap
.
get
(
meth
);
if
(
result
!=
null
)
{
...
...
@@ -678,7 +678,7 @@ public class DocEnv {
* Create the AnnotationTypeElementDoc for a MethodSymbol.
* Should be called only on symbols representing annotation type elements.
*/
void
makeAnnotationTypeElementDoc
(
MethodSymbol
meth
,
protected
void
makeAnnotationTypeElementDoc
(
MethodSymbol
meth
,
String
docComment
,
JCMethodDecl
tree
,
Position
.
LineMap
lineMap
)
{
AnnotationTypeElementDocImpl
result
=
(
AnnotationTypeElementDocImpl
)
methodMap
.
get
(
meth
);
...
...
src/share/classes/com/sun/tools/javadoc/DocImpl.java
浏览文件 @
1b8d85f1
...
...
@@ -92,7 +92,7 @@ public abstract class DocImpl implements Doc, Comparable<Object> {
* So subclasses have the option to do lazy initialization of
* "documentation" string.
*/
String
documentation
()
{
protected
String
documentation
()
{
if
(
documentation
==
null
)
documentation
=
""
;
return
documentation
;
}
...
...
src/share/classes/com/sun/tools/javadoc/JavadocClassReader.java
浏览文件 @
1b8d85f1
...
...
@@ -35,7 +35,7 @@ import com.sun.tools.javac.util.Context;
/** Javadoc uses an extended class reader that records package.html entries
* @author Neal Gafter
*/
class
JavadocClassReader
extends
ClassReader
{
public
class
JavadocClassReader
extends
ClassReader
{
public
static
JavadocClassReader
instance0
(
Context
context
)
{
ClassReader
instance
=
context
.
get
(
classReaderKey
);
...
...
@@ -59,7 +59,7 @@ class JavadocClassReader extends ClassReader {
private
EnumSet
<
JavaFileObject
.
Kind
>
noSource
=
EnumSet
.
of
(
JavaFileObject
.
Kind
.
CLASS
,
JavaFileObject
.
Kind
.
HTML
);
p
rivate
JavadocClassReader
(
Context
context
)
{
p
ublic
JavadocClassReader
(
Context
context
)
{
super
(
context
,
true
);
docenv
=
DocEnv
.
instance
(
context
);
preferSource
=
true
;
...
...
src/share/classes/com/sun/tools/javadoc/JavadocMemberEnter.java
浏览文件 @
1b8d85f1
...
...
@@ -38,7 +38,7 @@ import com.sun.tools.javac.tree.JCTree.*;
* done by javac.
* @author Neal Gafter
*/
class
JavadocMemberEnter
extends
MemberEnter
{
public
class
JavadocMemberEnter
extends
MemberEnter
{
public
static
JavadocMemberEnter
instance0
(
Context
context
)
{
MemberEnter
instance
=
context
.
get
(
memberEnterKey
);
if
(
instance
==
null
)
...
...
src/share/classes/com/sun/tools/javadoc/PackageDocImpl.java
浏览文件 @
1b8d85f1
/*
* Copyright (c) 1997, 20
09
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 20
11
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -96,7 +96,7 @@ public class PackageDocImpl extends DocImpl implements PackageDoc {
/**
* Do lazy initialization of "documentation" string.
*/
String
documentation
()
{
protected
String
documentation
()
{
if
(
documentation
!=
null
)
return
documentation
;
if
(
docPath
!=
null
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录