org.qbicc.graph.NodeVisitor Maven / Gradle / Ivy
package org.qbicc.graph;
/**
* A visitor that can visit any program node.
*/
public interface NodeVisitor extends ValueVisitor, ActionVisitor, TerminatorVisitor {
interface Delegating extends NodeVisitor, ValueVisitor.Delegating, ActionVisitor.Delegating, TerminatorVisitor.Delegating {
NodeVisitor getDelegateNodeVisitor();
default ActionVisitor getDelegateActionVisitor() {
return getDelegateNodeVisitor();
}
default TerminatorVisitor getDelegateTerminatorVisitor() {
return getDelegateNodeVisitor();
}
default ValueVisitor getDelegateValueVisitor() {
return getDelegateNodeVisitor();
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy