diff options
Diffstat (limited to 'org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/nd/java/NdTypeAnnotationInMethod.java')
-rw-r--r-- | org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/nd/java/NdTypeAnnotationInMethod.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/nd/java/NdTypeAnnotationInMethod.java b/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/nd/java/NdTypeAnnotationInMethod.java new file mode 100644 index 000000000..894a1d549 --- /dev/null +++ b/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/nd/java/NdTypeAnnotationInMethod.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 NdTypeAnnotationInMethod extends NdTypeAnnotation { + public static final FieldManyToOne<NdMethod> OWNER; + + @SuppressWarnings("hiding") + public static final StructDef<NdTypeAnnotationInMethod> type; + + static { + type = StructDef.create(NdTypeAnnotationInMethod.class, NdTypeAnnotation.type); + OWNER = FieldManyToOne.createOwner(type, NdMethod.TYPE_ANNOTATIONS); + type.done(); + } + + public NdTypeAnnotationInMethod(Nd nd, long address) { + super(nd, address); + } + + public NdTypeAnnotationInMethod(Nd nd, NdMethod variable) { + super(nd); + + OWNER.put(getNd(), this.address, variable); + } + +} |