Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2000, 2009 IBM Corporation 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: IBM Corporation - initial API and implementation /
package org.eclipse.jdt.internal.compiler.lookup;
Binding denoting a field after type substitution got performed. On parameterized type bindings, all fields got substituted, regardless whether their signature did involve generics or not, so as to get the proper declaringClass for these fields.
public class ParameterizedFieldBinding extends FieldBinding {
    public FieldBinding originalField;
public ParameterizedFieldBinding(ParameterizedTypeBinding parameterizedDeclaringClassFieldBinding originalField) {
    super (
            originalField.name,
            (originalField.modifiers & .) != 0
            	? parameterizedDeclaringClass // enum constant get paramType as its type
       			: (originalField.modifiers & .) != 0
       					? originalField.type // no subst for static field
       					: Scope.substitute(parameterizedDeclaringClassoriginalField.type),
            originalField.modifiers,
            parameterizedDeclaringClass,
            null);
    this. = originalField;
    this. = originalField.tagBits;
    this. = originalField.id;
public Constant constant() {
	return this..constant();
public FieldBinding original() {
	return this..original();
public void setConstant(Constant constant) {
	this..setConstant(constant);
New to GrepCode? Check out our FAQ X