Lines 107-112
Link Here
|
107 |
} |
107 |
} |
108 |
|
108 |
|
109 |
private IAnnotation getAnnotation(final org.eclipse.jdt.internal.compiler.ast.Annotation annotation, JavaElement parentElement) { |
109 |
private IAnnotation getAnnotation(final org.eclipse.jdt.internal.compiler.ast.Annotation annotation, JavaElement parentElement) { |
|
|
110 |
final int typeStart = annotation.type.sourceStart(); |
111 |
final int typeEnd = annotation.type.sourceEnd(); |
112 |
final int sourceStart = annotation.sourceStart(); |
113 |
final int sourceEnd = annotation.declarationSourceEnd; |
110 |
class LocalVarAnnotation extends Annotation { |
114 |
class LocalVarAnnotation extends Annotation { |
111 |
IMemberValuePair[] memberValuePairs; |
115 |
IMemberValuePair[] memberValuePairs; |
112 |
public LocalVarAnnotation(JavaElement localVar, String elementName) { |
116 |
public LocalVarAnnotation(JavaElement localVar, String elementName) { |
Lines 115-120
Link Here
|
115 |
public IMemberValuePair[] getMemberValuePairs() throws JavaModelException { |
119 |
public IMemberValuePair[] getMemberValuePairs() throws JavaModelException { |
116 |
return this.memberValuePairs; |
120 |
return this.memberValuePairs; |
117 |
} |
121 |
} |
|
|
122 |
public ISourceRange getNameRange() throws JavaModelException { |
123 |
return new SourceRange(typeStart, typeEnd - typeStart + 1); |
124 |
} |
125 |
public ISourceRange getSourceRange() throws JavaModelException { |
126 |
return new SourceRange(sourceStart, sourceEnd - sourceStart + 1); |
127 |
} |
118 |
public boolean exists() { |
128 |
public boolean exists() { |
119 |
return this.parent.exists(); |
129 |
return this.parent.exists(); |
120 |
} |
130 |
} |