Lines 21-26
Link Here
|
21 |
import org.eclipse.jdt.internal.compiler.ast.ClassLiteralAccess; |
21 |
import org.eclipse.jdt.internal.compiler.ast.ClassLiteralAccess; |
22 |
import org.eclipse.jdt.internal.compiler.ast.Expression; |
22 |
import org.eclipse.jdt.internal.compiler.ast.Expression; |
23 |
import org.eclipse.jdt.internal.compiler.ast.Literal; |
23 |
import org.eclipse.jdt.internal.compiler.ast.Literal; |
|
|
24 |
import org.eclipse.jdt.internal.compiler.ast.NullLiteral; |
24 |
import org.eclipse.jdt.internal.compiler.ast.QualifiedNameReference; |
25 |
import org.eclipse.jdt.internal.compiler.ast.QualifiedNameReference; |
25 |
import org.eclipse.jdt.internal.compiler.ast.SingleNameReference; |
26 |
import org.eclipse.jdt.internal.compiler.ast.SingleNameReference; |
26 |
import org.eclipse.jdt.internal.core.util.MementoTokenizer; |
27 |
import org.eclipse.jdt.internal.core.util.MementoTokenizer; |
Lines 154-160
Link Here
|
154 |
* Creates the value wrapper from the given expression, and sets the valueKind on the given memberValuePair |
155 |
* Creates the value wrapper from the given expression, and sets the valueKind on the given memberValuePair |
155 |
*/ |
156 |
*/ |
156 |
private Object getAnnotationMemberValue(MemberValuePair memberValuePair, Expression expression, JavaElement parentElement) { |
157 |
private Object getAnnotationMemberValue(MemberValuePair memberValuePair, Expression expression, JavaElement parentElement) { |
157 |
if (expression instanceof Literal) { |
158 |
if (expression instanceof NullLiteral) { |
|
|
159 |
return null; |
160 |
} else if (expression instanceof Literal) { |
158 |
((Literal) expression).computeConstant(); |
161 |
((Literal) expression).computeConstant(); |
159 |
return Util.getAnnotationMemberValue(memberValuePair, expression.constant); |
162 |
return Util.getAnnotationMemberValue(memberValuePair, expression.constant); |
160 |
} else if (expression instanceof org.eclipse.jdt.internal.compiler.ast.Annotation) { |
163 |
} else if (expression instanceof org.eclipse.jdt.internal.compiler.ast.Annotation) { |