Copyright (c) 2016 Till Brychcy and others. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-2.0/ SPDX-License-Identifier: EPL-2.0 Contributors: Till Brychcy - initial API and implementation
/******************************************************************************* * Copyright (c) 2016 Till Brychcy and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 * * Contributors: * Till Brychcy - initial API and implementation *******************************************************************************/
package org.eclipse.jdt.internal.compiler.flow; import org.eclipse.jdt.internal.compiler.ast.ASTNode; import org.eclipse.jdt.internal.compiler.lookup.BlockScope; import org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding;
For instances of this class, FlowContext.getInitsForFinalBlankInitializationCheck(TypeBinding, FlowInfo) will returns a FlowInfo.DEAD_END, which for which FlowInfo.isDefinitelyAssigned(FieldBinding) returns true for all fields.
/** * For instances of this class, * {@link FlowContext#getInitsForFinalBlankInitializationCheck(org.eclipse.jdt.internal.compiler.lookup.TypeBinding, FlowInfo)} * will returns a {@link FlowInfo#DEAD_END}, which for which * {@link FlowInfo#isDefinitelyAssigned(org.eclipse.jdt.internal.compiler.lookup.FieldBinding)} returns true for all * fields. */
public class FieldInitsFakingFlowContext extends ExceptionHandlingFlowContext { public FieldInitsFakingFlowContext( FlowContext parent, ASTNode associatedNode, ReferenceBinding[] handledExceptions, FlowContext initializationParent, BlockScope scope, UnconditionalFlowInfo flowInfo) { super(parent, associatedNode, handledExceptions, initializationParent, scope, flowInfo); } }