private void writeObject(ObjectOutputStream out) throws IOException { // rebuild variable mapper to be saved if (context != null) { VariableMapperBuilder vmb = new VariableMapperBuilder(context); node.applyVariableMapper(vmb); this.vm = vmb.getVariableMapper(); } out.defaultWriteObject(); }
public int arity(ELContext elctx) { if (node instanceof ELNode.LAMBDA) { return ((ELNode.LAMBDA) node).vars.length; } MethodInfo info = node.getMethodInfo(getContext(elctx)); if (info != null && info.getParamTypes() != null) { return info.getParamTypes().length; } else { return -1; } }
public MethodInfo getMethodInfo(ELContext elctx) { return node.getMethodInfo(getContext(elctx)); }
public Class<?> getType(ELContext elctx) { return node.getType(getContext(elctx)); }
public boolean isReadOnly(ELContext elctx) { return node.isReadOnly(getContext(elctx)); }
public void setValue(ELContext elctx, Object value) { node.setValue(getContext(elctx), value); }
public Object getValue(ELContext elctx) { return node.getValue(getContext(elctx)); }
public Object invoke(ELContext elctx, Closure[] args) { return node.invoke(getContext(elctx), args); }