Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2000, 2013 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 Stephan Herrmann - Contribution for bug 331649 - [compiler][null] consider null annotations for fields /
package org.eclipse.jdt.internal.compiler.lookup;
public abstract class VariableBinding extends Binding {
	public int modifiers;
	public TypeBinding type;
	public char[] name;
	protected Constant constant;
	public int id// for flow-analysis (position in flowInfo bit vector)
	public long tagBits;
	public VariableBinding(char[] nameTypeBinding typeint modifiersConstant constant) {
		this. = name;
		this. = type;
		this. = modifiers;
		this. = constant;
		if (type != null) {
			this. |= (type.tagBits & .);
		}
	}
	public Constant constant() {
		return this.;
	}
	public abstract AnnotationBinding[] getAnnotations();
	public final boolean isBlankFinal(){
	}
	/* Answer true if the receiver is final and cannot be changed
	*/
	public final boolean isFinal() {
		return (this. & .) != 0;
	}
	public final boolean isEffectivelyFinal() {
		return (this. & .) != 0;
	}

Answer true if null annotations are enabled and this field is specified

NonNull:
	public boolean isNonNull() {
		return (this. & .) != 0;
	}

Answer true if null annotations are enabled and this field is specified

Nullable:
	public boolean isNullable() {
		return (this. & .) != 0;
	}
	public char[] readableName() {
		return this.;
	}
	public void setConstant(Constant constant) {
		this. = constant;
	}
	public String toString() {
		StringBuffer output = new StringBuffer(10);
		ASTNode.printModifiers(this.output);
			output.append("[unresolved] "); //$NON-NLS-1$
		}
		output.append(this. != null ? this..debugName() : "<no type>"); //$NON-NLS-1$
		output.append(" "); //$NON-NLS-1$
		output.append((this. != null) ? new String(this.) : "<no name>"); //$NON-NLS-1$
		return output.toString();
	}
New to GrepCode? Check out our FAQ X