blob: 829c9850747e3615174a4b93108c6202e8df9c2d [file] [log] [blame]
// Copyright (c) 2021, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.ir.conversion;
import com.android.tools.r8.graph.ProgramMethod;
import com.android.tools.r8.ir.conversion.callgraph.CallSiteInformation;
import com.android.tools.r8.optimize.compose.ComposeMethodProcessor;
public abstract class MethodProcessor {
public boolean isComposeMethodProcessor() {
return false;
}
public ComposeMethodProcessor asComposeMethodProcessor() {
return null;
}
public boolean isD8MethodProcessor() {
return false;
}
public boolean isPrimaryMethodProcessor() {
return false;
}
public PrimaryMethodProcessor asPrimaryMethodProcessor() {
return null;
}
public boolean isPostMethodProcessor() {
return false;
}
public abstract MethodProcessorEventConsumer getEventConsumer();
public abstract boolean isProcessedConcurrently(ProgramMethod method);
public abstract boolean shouldApplyCodeRewritings(ProgramMethod method);
public abstract void scheduleDesugaredMethodForProcessing(ProgramMethod method);
public abstract CallSiteInformation getCallSiteInformation();
}