Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2000, 2008 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.core;
 
 import  org.eclipse.core.runtime.IProgressMonitor;

See also:
IInitializer
 
 
 public class Initializer extends Member implements IInitializer {
 
 protected Initializer(JavaElement parentint count) {
 	super(parent);
 	// 0 is not valid: this first occurrence is occurrence 1.
 	if (count <= 0)
 		throw new IllegalArgumentException();
 	this. = count;
 }
 public boolean equals(Object o) {
 	if (!(o instanceof Initializer)) return false;
 	return super.equals(o);
 }

See also:
IJavaElement
 
 public int getElementType() {
 	return ;
 }

See also:
JavaElement.getHandleMemento(StringBuffer)
 
 protected void getHandleMemento(StringBuffer buff) {
 	buff.append(this.);
 }

See also:
JavaElement.getHandleMemento()
 
 protected char getHandleMementoDelimiter() {
 }
 public int hashCode() {
 	return Util.combineHashCodes(this..hashCode(), this.);
 }
 
 public String readableName() {
 
 }

See also:
ISourceManipulation
 
 public void rename(String newNameboolean force, IProgressMonitor monitorthrows JavaModelException {
 }

See also:
IMember
 
 	return null;
 }
 /*
  * @see JavaElement#getPrimaryElement(boolean)
  */
 public IJavaElement getPrimaryElement(boolean checkOwner) {
 	if (checkOwner) {
 		if (cu == null || cu.isPrimary()) return this;
 	}
 	IJavaElement primaryParent = this..getPrimaryElement(false);
 	return ((IType)primaryParent).getInitializer(this.);
 }

Private:
Debugging purposes
 
 protected void toStringInfo(int tabStringBuffer bufferObject infoboolean showResolvedInfo) {
 	buffer.append(tabString(tab));
 	if (info == null) {
 		buffer.append("<initializer #"); //$NON-NLS-1$
 		buffer.append(this.);
		buffer.append("> (not open)"); //$NON-NLS-1$
else if (info == ) {
		buffer.append("<initializer #"); //$NON-NLS-1$
		buffer.append(this.);
		buffer.append(">"); //$NON-NLS-1$
else {
		try {
			buffer.append("<"); //$NON-NLS-1$
			if (Flags.isStatic(getFlags())) {
				buffer.append("static "); //$NON-NLS-1$
			}
		buffer.append("initializer #"); //$NON-NLS-1$
		buffer.append(this.);
		buffer.append(">"); //$NON-NLS-1$
catch (JavaModelException e) {
			buffer.append("<JavaModelException in toString of " + getElementName()); //$NON-NLS-1$
		}
	}
New to GrepCode? Check out our FAQ X