@Override public boolean accepts( Object o) { return ((ASTNode) o).isFunction(); }
if ((mathNode.isName() || mathNode.isFunction()) && mathNode.getName() != null && allFunctionsIdSet.contains(mathNode.getName().trim()) && (mathNode.isName() || mathNode.isFunction()) && mathNode.getName() == null)
if ((astNode.isFunction() || astNode.isOperator() || astNode.isRelational() || astNode.isLogical()) && !elementName.equals("apply") && !elementName.equals("piecewise") && !elementName.equals("lamdba") && !astNode.getType().equals(ASTNode.Type.LAMBDA)
/** * Creates brackets around the given ASTNode if it is not a simple number or String * or a function (meaning the method {@link ASTNode#isFunction()} returns true). * * @param node the {@link ASTNode} to compile to String * @return a String representing the given ASTNode * @throws SBMLException - if any error occurs while going through the ASTNode */ protected String checkArgumentBrackets(ASTNode node) throws SBMLException { String term = node.compile(this).toString(); if ((node.isNumber() || node.isString() || node.isFunction()) && (! (node.getType() == ASTNode.Type.FUNCTION_POWER || node.getType() == ASTNode.Type.FUNCTION_REM))) { return term; } // for node.isRelational() and node.isLogical(), we want to put brackets return term = brackets(term).toString(); }
if (astNode.isName() || astNode.isFunction()) { astNode.setName(characters.trim()); } else if (astNode.isInteger()) {
body.isFunction() || body.isOperator() || body.getType() == Type.CONSTANT_PI || body.getType() == Type.CONSTANT_E;
if (node.isFunction()) { return DT_NUMBER;