diff options
author | Dmitry Kurelchuk <kdaemonv@gmail.com> | 2018-04-20 22:47:34 +0300 |
---|---|---|
committer | Dmitry Kurelchuk <kdaemonv@gmail.com> | 2018-04-20 22:47:34 +0300 |
commit | e6532bbe94f9b5f0452e97bc9462e084b25f7aa2 (patch) | |
tree | c3abf579681321c965ecf388bb9cae6f01d76ca6 /src/utils/lombok/eclipse | |
parent | f540335ef972d84f02efba6dcaf608aec0e19129 (diff) | |
download | lombok-e6532bbe94f9b5f0452e97bc9462e084b25f7aa2.tar.gz lombok-e6532bbe94f9b5f0452e97bc9462e084b25f7aa2.tar.bz2 lombok-e6532bbe94f9b5f0452e97bc9462e084b25f7aa2.zip |
move ClassLiteral and FieldSelect from core/lombok/core/AnnotationValues.java to utils/lombok/core/
Diffstat (limited to 'src/utils/lombok/eclipse')
-rw-r--r-- | src/utils/lombok/eclipse/Eclipse.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/utils/lombok/eclipse/Eclipse.java b/src/utils/lombok/eclipse/Eclipse.java index 296c0a19..f2b5486c 100644 --- a/src/utils/lombok/eclipse/Eclipse.java +++ b/src/utils/lombok/eclipse/Eclipse.java @@ -27,6 +27,8 @@ import java.util.Arrays; import java.util.List; import java.util.regex.Pattern; +import lombok.core.ClassLiteral; +import lombok.core.FieldSelect; import org.eclipse.jdt.internal.compiler.ast.ASTNode; import org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration; import org.eclipse.jdt.internal.compiler.ast.Annotation; @@ -44,8 +46,6 @@ import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; import org.eclipse.jdt.internal.compiler.impl.CompilerOptions; import org.eclipse.jdt.internal.compiler.lookup.TypeIds; -import lombok.core.AnnotationValues; - public class Eclipse { private static final Annotation[] EMPTY_ANNOTATIONS_ARRAY = new Annotation[0]; /** @@ -177,13 +177,13 @@ public class Eclipse { default: return null; } } else if (e instanceof ClassLiteralAccess) { - return new AnnotationValues.ClassLiteral(Eclipse.toQualifiedName(((ClassLiteralAccess)e).type.getTypeName())); + return new ClassLiteral(Eclipse.toQualifiedName(((ClassLiteralAccess)e).type.getTypeName())); } else if (e instanceof SingleNameReference) { - return new AnnotationValues.FieldSelect(new String(((SingleNameReference)e).token)); + return new FieldSelect(new String(((SingleNameReference)e).token)); } else if (e instanceof QualifiedNameReference) { String qName = Eclipse.toQualifiedName(((QualifiedNameReference)e).tokens); int idx = qName.lastIndexOf('.'); - return new AnnotationValues.FieldSelect(idx == -1 ? qName : qName.substring(idx+1)); + return new FieldSelect(idx == -1 ? qName : qName.substring(idx+1)); } return null; |