BooleanTypeImpl.java :  » IDE-Eclipse » All-Other-packages » org » eclipse » jdi » internal » Java Open Source

Java Open Source » IDE Eclipse » All Other packages 
All Other packages » org » eclipse » jdi » internal » BooleanTypeImpl.java
/*******************************************************************************
 * Copyright (c) 2000, 2005 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.jdi.internal;


import com.sun.jdi.BooleanType;
import com.sun.jdi.Value;

/**
 * this class implements the corresponding interfaces
 * declared by the JDI specification. See the com.sun.jdi package
 * for more information.
 *
 */
public class BooleanTypeImpl extends PrimitiveTypeImpl implements BooleanType {
  /**
   * Creates new instance.
   */
  public BooleanTypeImpl(VirtualMachineImpl vmImpl) {
    super("BooleanType", vmImpl, "boolean" , "Z"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
  }
  
  /**
   * @returns primitive type tag.
   */
  public byte tag() {
    return BooleanValueImpl.tag;
  }
  
  /**
   * @return Create a null value instance of the type.
   */
  public Value createNullValue() {
    return virtualMachineImpl().mirrorOf(false);
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.