diff options
author | Stephan Herrmann | 2016-10-06 20:01:15 +0000 |
---|---|---|
committer | Stephan Herrmann | 2016-10-06 20:12:41 +0000 |
commit | afbebd80d660f7396d0efd5b8d4912c9b6852ed1 (patch) | |
tree | e63c7ba596d1ae8ad332fc4989bd5278cfd658ad /org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/nd/java/NdAnnotationInVariable.java | |
parent | ab84f667da1cf85b986bfcc29201ec954e2c104d (diff) | |
download | org.eclipse.objectteams-afbebd80d660f7396d0efd5b8d4912c9b6852ed1.tar.gz org.eclipse.objectteams-afbebd80d660f7396d0efd5b8d4912c9b6852ed1.tar.xz org.eclipse.objectteams-afbebd80d660f7396d0efd5b8d4912c9b6852ed1.zip |
Update jdt.core to I20161005-1430
Diffstat (limited to 'org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/nd/java/NdAnnotationInVariable.java')
-rw-r--r-- | org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/nd/java/NdAnnotationInVariable.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/nd/java/NdAnnotationInVariable.java b/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/nd/java/NdAnnotationInVariable.java new file mode 100644 index 000000000..378b2d44a --- /dev/null +++ b/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/nd/java/NdAnnotationInVariable.java @@ -0,0 +1,39 @@ +/******************************************************************************* + * Copyright (c) 2016 Google, Inc and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Stefan Xenos (Google) - Initial implementation + *******************************************************************************/ +package org.eclipse.jdt.internal.core.nd.java; + +import org.eclipse.jdt.internal.core.nd.Nd; +import org.eclipse.jdt.internal.core.nd.field.FieldManyToOne; +import org.eclipse.jdt.internal.core.nd.field.StructDef; + +public class NdAnnotationInVariable extends NdAnnotation { + public static final FieldManyToOne<NdVariable> OWNER; + + @SuppressWarnings("hiding") + public static final StructDef<NdAnnotationInVariable> type; + + static { + type = StructDef.create(NdAnnotationInVariable.class, NdAnnotation.type); + OWNER = FieldManyToOne.createOwner(type, NdVariable.ANNOTATIONS); + type.done(); + } + + public NdAnnotationInVariable(Nd nd, long address) { + super(nd, address); + } + + public NdAnnotationInVariable(Nd nd, NdVariable owner) { + super(nd); + + OWNER.put(getNd(), this.address, owner); + } + +} |