- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {}
/** * Creates a string containing the variable's name and value */ public String toString() { if (variable == null) { return "Column: "+index; } else { return "Variable: \"" + (variable == null ? "null" : variable.getValue().toString())+ "\""; } } }
/** * Creates a string containing the variable's name and value */ public String toString() { if (variable == null) { return "Column: "+index; } else { return "Variable: \"" + (variable == null ? "null" : variable.getValue().toString())+ "\""; } } }
/** * Visit a variable node. The value of the variable is obtained from the * model and pushed onto the stack. */ @SuppressWarnings("unchecked") final public Object visit(ASTVarNode node, Object data) throws ParseException { JepRuntime runtime = getThreadJepRuntime(this); if (node.index >= 0) { Comparable value = getColumnObject(node.index); if(value instanceof Comparative){ value = (Comparable)((Comparative)value).clone(); } runtime.stack.push(value); } else { if(node.variable == null){ Comparable comparable = runtime.vars.get(node.ident); runtime.stack.push(comparable); }else{ runtime.stack.push(node.variable.getValue()); } } return null; }
/** * Visit a variable node. The value of the variable is obtained from the * model and pushed onto the stack. */ @SuppressWarnings("unchecked") final public Object visit(ASTVarNode node, Object data) throws ParseException { JepRuntime runtime = getThreadJepRuntime(this); if (node.index >= 0) { Comparable value = getColumnObject(node.index); if(value instanceof Comparative){ value = (Comparable)((Comparative)value).clone(); } runtime.stack.push(value); } else { runtime.stack.push((Comparable)node.variable.getValue()); } return null; }