java.lang.Object
java.lang.Record
org.aya.terck.CallResolver
- 记录组件:
targets- only search calls to those definitions
- 所有已实现的接口:
Consumer<Term>,DefConsumer,TermConsumer
public record CallResolver(@NotNull FnDef caller, @NotNull kala.collection.mutable.MutableSet<Def> targets, @NotNull kala.value.MutableValue<Matching> currentMatching, @NotNull CallGraph<Def,Term.Param> graph)
extends Record
implements DefConsumer
Resolve calls and build call graph of recursive functions,
after
StmtTycker.-
构造器概要
构造器构造器说明CallResolver(@NotNull FnDef caller, @NotNull kala.collection.mutable.MutableSet<Def> targets, @NotNull kala.value.MutableValue<Matching> currentMatching, @NotNull CallGraph<Def, Term.Param> graph) 创建CallResolver记录类的实例。CallResolver(@NotNull FnDef fn, @NotNull kala.collection.mutable.MutableSet<Def> targets, @NotNull CallGraph<Def, Term.Param> graph) -
方法概要
修饰符和类型方法说明@NotNull FnDefcaller()返回caller记录组件的值。@NotNull kala.value.MutableValue<Matching>返回currentMatching记录组件的值。final boolean指示某个其他对象是否“等于”此对象。@NotNull CallGraph<Def,Term.Param> graph()返回graph记录组件的值。final inthashCode()返回此对象的哈希代码值。void@NotNull kala.collection.mutable.MutableSet<Def>targets()返回targets记录组件的值。final StringtoString()返回此记录类的字符串表示形式。voidvisitMatching(@NotNull Matching matching) 从接口继承的方法 org.aya.core.visitor.DefConsumer
accept, visitPat从接口继承的方法 org.aya.core.visitor.TermConsumer
accept, post
-
构造器详细资料
-
CallResolver
public CallResolver(@NotNull @NotNull FnDef fn, @NotNull @NotNull kala.collection.mutable.MutableSet<Def> targets, @NotNull @NotNull CallGraph<Def, Term.Param> graph) -
CallResolver
public CallResolver(@NotNull @NotNull FnDef caller, @NotNull @NotNull kala.collection.mutable.MutableSet<Def> targets, @NotNull @NotNull kala.value.MutableValue<Matching> currentMatching, @NotNull @NotNull CallGraph<Def, Term.Param> graph) 创建CallResolver记录类的实例。- 参数:
caller-caller记录组件的值targets-targets记录组件的值currentMatching-currentMatching记录组件的值graph-graph记录组件的值
-
-
方法详细资料
-
visitMatching
- 指定者:
visitMatching在接口中DefConsumer
-
pre
- 指定者:
pre在接口中TermConsumer
-
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录类中的所有组件都使用Objects::equals(Object,Object)进行比较。 -
caller
返回caller记录组件的值。- 返回:
caller记录组件的值
-
targets
返回targets记录组件的值。- 返回:
targets记录组件的值
-
currentMatching
返回currentMatching记录组件的值。- 返回:
currentMatching记录组件的值
-
graph
返回graph记录组件的值。- 返回:
graph记录组件的值
-