Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2000, 2011 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 186342 - [compiler][null] Using annotations for null checking /
 
 package org.eclipse.jdt.internal.eval;
 
 import  org.eclipse.core.runtime.IProgressMonitor;
The skeleton of the class 'org.eclipse.jdt.internal.eval.target.CodeSnippet' used at compile time. Note that the method run() is declared to throw Throwable so that the user can write a code snipet that throws checked exceptio without having to catch those.
 
 public class CodeSnippetSkeleton implements IBinaryTypeEvaluationConstants {
 	public static class BinaryMethodSkeleton implements IBinaryMethod {
 		char[][] exceptionTypeNames;
 		char[] methodDescriptor;
 		char[] selector;
 		boolean isConstructor;
 
 		public BinaryMethodSkeleton(char[] selectorchar[] methodDescriptorchar[][] exceptionTypeNamesboolean isConstructor) {
 			this. = selector;
 			this. = methodDescriptor;
 			this. = exceptionTypeNames;
 			this. = isConstructor;
 		}
 			return null;
 		}
 		public char[][] getArgumentNames() {
 			return null;
 		}
 		public Object getDefaultValue() {
 			return null;
 		}
 		public char[][] getExceptionTypeNames() {
 			return this.;
 		}
 		public char[] getGenericSignature() {
 			return null;
 		}
 		public char[] getMethodDescriptor() {
 			return this.;
 		}
 		public int getModifiers() {
 		}
 		public IBinaryAnnotation[] getParameterAnnotations(int index) {
 			return null;
 		}
 		public int getAnnotatedParametersCount() {
 			return 0;
 		}
 		public char[] getSelector() {
 			return this.;
 		}
 		public long getTagBits() {
 			return 0;
 		}
 		public boolean isClinit() {
 			return false;
 		}
 		public boolean isConstructor() {
 			return this.;
 		}
 }
 
 			"<init>".toCharArray(), //$NON-NLS-1$
 			"()V".toCharArray(), //$NON-NLS-1$
 			new char[][] {},
 			true
 		),
 			"run".toCharArray(), //$NON-NLS-1$
 			"()V".toCharArray(), //$NON-NLS-1$
 			new char[][] {"java/lang/Throwable".toCharArray()}, //$NON-NLS-1$
 			false
 		),
 			"setResult".toCharArray(), //$NON-NLS-1$
			"(Ljava/lang/Object;Ljava/lang/Class;)V".toCharArray(), //$NON-NLS-1$
			new char[][] {},
			false
		)
	};

CodeSnippetSkeleton constructor comment.
	super();
	return null;
public char[] getEnclosingMethod() {
	return null;
public char[] getEnclosingTypeName() {
	return null;
public IBinaryField[] getFields() {
	return null;

See also:
org.eclipse.jdt.internal.compiler.env.IDependent.getFileName()
public char[] getFileName() {
	return CharOperation.concat(, Util.defaultJavaExtension().toCharArray());
public char[] getGenericSignature() {
	return null;
public char[][] getInterfaceNames() {
	return null;
	return null;
public String getJavadocContents(IProgressMonitor monitorString defaultEncodingthrows JavaModelException {
	return null;
	return null;
	return this.;
public int getModifiers() {
public char[][][] getMissingTypeNames() {
	return null;
public char[] getName() {
public char[] getSourceName() {
public char[] getSuperclassName() {
	return null;
public long getTagBits() {
	return 0;
public String getURLContents(String docUrlValueString defaultEncoding) {
	return null;
public boolean isAnonymous() {
	return false;
public boolean isBinaryType() {
	return true;
public boolean isLocal() {
	return false;
public boolean isMember() {
	return false;
public char[] sourceFileName() {
	return null;
New to GrepCode? Check out our FAQ X