Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2000, 2009 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.compiler.ast;
public class FalseLiteral extends MagicLiteral {
	static final char[] source = {'f''a''l''s''e'};
public FalseLiteral(int s , int e) {
	super(s,e);
public void computeConstant() {
	this. = BooleanConstant.fromValue(false);
Code generation for false literal

Parameters:
currentScope org.eclipse.jdt.internal.compiler.lookup.BlockScope
codeStream org.eclipse.jdt.internal.compiler.codegen.CodeStream
valueRequired boolean
public void generateCode(BlockScope currentScopeCodeStream codeStreamboolean valueRequired) {
	int pc = codeStream.position;
	if (valueRequired) {
	}
	codeStream.recordPositionsFrom(pcthis.);
public void generateOptimizedBoolean(BlockScope currentScopeCodeStream codeStreamBranchLabel trueLabelBranchLabel falseLabelboolean valueRequired) {
	// falseLabel being not nil means that we will not fall through into the FALSE case
	int pc = codeStream.position;
	if (valueRequired) {
		if (falseLabel != null) {
			// implicit falling through the TRUE case
			if (trueLabel == null) {
				codeStream.goto_(falseLabel);
			}
		}
	}
	codeStream.recordPositionsFrom(pcthis.);
public char[] source() {
	return ;
public void traverse(ASTVisitor visitorBlockScope scope) {
	visitor.visit(thisscope);
	visitor.endVisit(thisscope);
New to GrepCode? Check out our FAQ X