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 Contributors: IBM Corporation - initial API and implementation /
package org.eclipse.jdt.internal.compiler.lookup;
	private boolean typeUnresolved = true;
	this. = env;
	if (this.) { // the type is resolved when requested
		boolean wasToleratingMissingTypeProcessingAnnotations = this..;
		this.. = true//
		try {
			this. = (ReferenceBinding) BinaryTypeBinding.resolveType(this.this.false /* no raw conversion for now */);
				// annotation types are never parameterized
finally {
			this.. = wasToleratingMissingTypeProcessingAnnotations;
		this. = false;
	return this.;
	if (this. != null) {
		if (this.) {
			getAnnotationType(); // resolve the annotation type
		// resolve method binding and value type (if unresolved) for each pair
		for (int i = this..length; --i >= 0;) {
			ElementValuePair pair = this.[i];
			MethodBinding[] methods = this..getMethods(pair.getName());
			// there should be exactly one since the type is an annotation type.
			if (methods != null && methods.length == 1) {
// else silently leave a null there
			Object value = pair.getValue();
			if (value instanceof UnresolvedReferenceBinding) {
							// no parameterized types in annotation values
// do nothing for UnresolvedAnnotationBinding-s, since their
			  // content is only accessed through get* methods
		this. = null;
	return this.;
New to GrepCode? Check out our FAQ X