blob: 957e7cf45c3ed0a295a541fbccf81ede53017472 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2016 Google, Inc 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:
* Stefan Xenos (Google) - Initial implementation
*******************************************************************************/
package org.eclipse.jdt.internal.core.nd;
import org.eclipse.jdt.internal.core.nd.field.StructDef.DeletionSemantics;
public abstract class AbstractTypeFactory<T> implements ITypeFactory<T> {
@Override
public void destructFields(Nd dom, long address) {
// No nested fields by default
}
@Override
public void destruct(Nd dom, long address) {
// Nothing to destruct by default
}
@Override
public boolean hasDestructor() {
return false;
}
@Override
public boolean isReadyForDeletion(Nd dom, long address) {
return false;
}
@Override
public DeletionSemantics getDeletionSemantics() {
return DeletionSemantics.EXPLICIT;
}
}