package com.redhat.ceylon.eclipse.core.builder;

import com.redhat.ceylon.compiler.java.codegen.BoxingVisitor;
import com.redhat.ceylon.compiler.typechecker.model.Declaration;
import com.redhat.ceylon.compiler.typechecker.model.ProducedReference;
import com.redhat.ceylon.compiler.typechecker.model.ProducedType;

public class IDEBoxingVisitor extends BoxingVisitor {

	@Override
	protected boolean isBooleanTrue(Declaration decl) {
		return IDEBoxingUtil.isBooleanTrue(decl);
	}

	@Override
	protected boolean isBooleanFalse(Declaration decl) {
        return IDEBoxingUtil.isBooleanFalse(decl);
	}

    @Override
    protected boolean hasErasure(ProducedType type) {
        return IDEBoxingUtil.hasErasure(type);
    }

    @Override
    protected boolean isTypeParameter(ProducedType type) {
        return IDEBoxingUtil.isTypeParameter(type);
    }

	@Override
	protected boolean hasErasedTypeParameters(ProducedReference arg0) {
		// TODO Auto-generated method stub
		return false;
	}
}

package com.redhat.ceylon.eclipse.core.builder;

import com.redhat.ceylon.compiler.java.codegen.BoxingVisitor;
import com.redhat.ceylon.compiler.typechecker.model.Declaration;
import com.redhat.ceylon.compiler.typechecker.model.ProducedReference;
import com.redhat.ceylon.compiler.typechecker.model.ProducedType;

public class IDEBoxingVisitor extends BoxingVisitor {

	@Override
	protected boolean isBooleanTrue(Declaration decl) {
		return IDEBoxingUtil.isBooleanTrue(decl);
	}

	@Override
	protected boolean isBooleanFalse(Declaration decl) {
        return IDEBoxingUtil.isBooleanFalse(decl);
	}

    @Override
    protected boolean hasErasure(ProducedType type) {
        return IDEBoxingUtil.hasErasure(type);
    }

    @Override
    protected boolean isTypeParameter(ProducedType type) {
        return IDEBoxingUtil.isTypeParameter(type);
    }

	@Override
	protected boolean hasErasedTypeParameters(ProducedReference pr) {
		// TODO!!!! This is wrong!
		return false;
	}

    @Override
    protected boolean isRaw(ProducedType pt) {
        return IDEBoxingUtil.isTurnedToRaw(pt);
    }
}

add missing method due to change to compiler