Examples of ASTFunctionType


Examples of org.jmathml.ASTFunction.ASTFunctionType

      int base =Integer.parseInt(baseValue.getText().trim());
      ((ASTFunction.ASTLog)curr).addChildNode(ASTNumber.createNumber(base));
    }
   
    else if (isFunction(mathml)){
      ASTFunctionType type = ASTFunction.getFunctionTypeForName(mathml.getName());
      ASTNode toAdd=null;
     
      if (type.equals(ASTFunctionType.LOG )) {
        List<Element> siblings = ((Element)mathml.getParent()).getChildren();
        for (Element siblin: siblings) {
          if(siblin.getName().equals("logbase")){
            Element baseValue=(Element)siblin.getChildren().get(0);
            int base =Integer.parseInt(baseValue.getText().trim());
            toAdd = ASTFunction.createASTLog(base);
          }
        }
       
      }else if (type.equals(ASTFunctionType.ROOT )) {
        List<Element> siblings = ((Element)mathml.getParent()).getChildren();
        for (Element siblin: siblings) {
          if(siblin.getName().equals("degree")){
            Element baseValue=(Element)siblin.getChildren().get(0);
            int degree =Integer.parseInt(baseValue.getText().trim());
View Full Code Here

Examples of org.jmathml.ASTFunction.ASTFunctionType

      int base =Integer.parseInt(baseValue.getText().trim());
      ((ASTFunction.ASTLog)curr).addChildNode(ASTNumber.createNumber(base));
    }
   
    else if (isFunction(mathml)){
      ASTFunctionType type = ASTFunction.getFunctionTypeForName(mathml.getName());
      ASTNode toAdd=null;
     
      if (type.equals(ASTFunctionType.LOG )) {
        List<Element> siblings = ((Element)mathml.getParent()).getChildren();
        for (Element siblin: siblings) {
          if(siblin.getName().equals("logbase")){
            Element baseValue=(Element)siblin.getChildren().get(0);
            int base =Integer.parseInt(baseValue.getText().trim());
            toAdd = ASTFunction.createASTLog(base);
          }
        }
       
      }else if (type.equals(ASTFunctionType.ROOT )) {
        List<Element> siblings = ((Element)mathml.getParent()).getChildren();
        for (Element siblin: siblings) {
          if(siblin.getName().equals("degree")){
            Element baseValue=(Element)siblin.getChildren().get(0);
            int degree =Integer.parseInt(baseValue.getText().trim());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.