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 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.modifiers & .) != 0
            	? parameterizedDeclaringClass // enum constant get paramType as its type
       			: (originalField.modifiers & .) != 0
       					? originalField.type // no subst for static field
       					: Scope.substitute(parameterizedDeclaringClassoriginalField.type),
    this. = originalField;
    this. = originalField.tagBits;
    this. =;
public Constant constant() {
	return this..constant();
public FieldBinding original() {
	return this..original();
public void setConstant(Constant constant) {
New to GrepCode? Check out our FAQ X