public abstract class Binding extends Object
| Constructor and Description |
|---|
Binding() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(BindingContext bindingContext)
检查当前条件下这个binding是否可以工作,比如检查field是否有这个field。
|
boolean |
fromStack() |
abstract com.alibaba.deps.org.objectweb.asm.Type |
getType(BindingContext bindingContext) |
boolean |
optional()
是否可选的,当不符合条件,或者获取不到值时,会转为 null,这个不支持原始类型,就像java.util.Optional 一样?
|
abstract void |
pushOntoStack(com.alibaba.deps.org.objectweb.asm.tree.InsnList instructions,
BindingContext bindingContext)
把这个binding本身放到栈上
|
public boolean optional()
public boolean check(BindingContext bindingContext)
public abstract void pushOntoStack(com.alibaba.deps.org.objectweb.asm.tree.InsnList instructions,
BindingContext bindingContext)
instructions - bindingContext - public abstract com.alibaba.deps.org.objectweb.asm.Type getType(BindingContext bindingContext)
public boolean fromStack()
Copyright © 2018–2021. All rights reserved.