Search in sources :

Example 6 with CodeAndSourceLocation

use of org.cytoscape.equations.CodeAndSourceLocation in project cytoscape-impl by cytoscape.

the class IdentNode method genCode.

public void genCode(final Stack<CodeAndSourceLocation> codeStack) {
    if (defaultValue != null)
        codeStack.push(new CodeAndSourceLocation(defaultValue, -1));
    codeStack.push(new CodeAndSourceLocation(attribName, -1));
    codeStack.push(new CodeAndSourceLocation(defaultValue == null ? Instruction.AREF : Instruction.AREF2, getSourceLocation()));
}
Also used : CodeAndSourceLocation(org.cytoscape.equations.CodeAndSourceLocation)

Aggregations

CodeAndSourceLocation (org.cytoscape.equations.CodeAndSourceLocation)6 Stack (java.util.Stack)1 Equation (org.cytoscape.equations.Equation)1 TreeNode (org.cytoscape.equations.TreeNode)1