Codota Logo
org.matheclipse.parser.client.ast
Code IndexAdd Codota to your IDE (free)

How to use org.matheclipse.parser.client.ast

Best Java code snippets using org.matheclipse.parser.client.ast (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: org.refcodes/refcodes-criteria

/**
 * {@inheritDoc} Depends on.
 */
@Override
public boolean dependsOn( String variableName ) {
  for ( int i = 1; i < size(); i++ ) {
    if ( get( i ).dependsOn( variableName ) ) {
      return true;
    }
  }
  return false;
}
origin: org.refcodes/refcodes-criteria

/**
 * {@inheritDoc} Creates a new ASTNode object.
 */
@Override
public FunctionNode createFunction( final SymbolNode head ) {
  return new FunctionNode( head );
}
origin: org.refcodes/refcodes-criteria

/**
 * {@inheritDoc} Equals.
 */
@Override
public boolean equals( Object obj ) {
  if ( obj instanceof FractionNode ) {
    return fNumerator.equals( ((FractionNode) obj).fNumerator ) && fDenominator.equals( ((FractionNode) obj).fDenominator ) && sign == ((FractionNode) obj).sign;
  }
  return false;
}
origin: axkr/symja_android_library

  @Override
  public ASTNode createFunction(final INodeParserFactory factory, final ASTNode lhs, final ASTNode rhs) {
    if (rhs instanceof FunctionNode) {
      FunctionNode r = (FunctionNode) rhs;
      if (r.size() == 3) {
        if (r.get(0).equals(factory.createSymbol("Set"))) {
          return factory.createFunction(factory.createSymbol("TagSet"), lhs, r.get(1), r.get(2));
        } else if (r.get(0).equals(factory.createSymbol("SetDelayed"))) {
          return factory.createFunction(factory.createSymbol("TagSetDelayed"), lhs, r.get(1), r.get(2));
        }
      }
    }
    return factory.createFunction(factory.createSymbol("TagSet"), lhs, rhs);
  }
}
origin: org.appdapter/ext.bundle.math.symja_jas

  public ASTNode createFunction(final IParserFactory factory,
      final ASTNode lhs, final ASTNode rhs) {
    if (rhs instanceof IntegerNode) {
      if (lhs instanceof IntegerNode) {
        return new FractionNode((IntegerNode) lhs, (IntegerNode) rhs);
      }
      return factory.createFunction(factory.createSymbol("Times"), lhs,
          new FractionNode(IntegerNode.C1, (IntegerNode) rhs));
    }
    return factory.createFunction(factory.createSymbol("Times"), lhs,
        factory.createFunction(factory.createSymbol("Power"), rhs,
            factory.createInteger(-1)));
  }
}
origin: org.appdapter/ext.bundle.math.symja_jas

public int hashCode() {
  if (fSymbol != null) {
    return fSymbol.hashCode();
  }
  return 11;
}
origin: org.refcodes/refcodes-criteria

/**
 * {@inheritDoc} Creates a new ASTNode object.
 */
@Override
public FractionNode createFraction( final IntegerNode numerator, final IntegerNode denominator ) {
  return new FractionNode( numerator, denominator );
}
origin: org.refcodes/refcodes-criteria

/**
 * {@inheritDoc} Creates a new ASTNode object.
 */
@Override
public SymbolNode createSymbol( final String symbolName ) {
  return new SymbolNode( symbolName );
}
origin: org.refcodes/refcodes-criteria

/**
 * {@inheritDoc} Creates a new ASTNode object.
 */
@Override
public ASTNode createDouble( final String doubleString ) {
  return new FloatNode( doubleString );
}
origin: org.appdapter/ext.bundle.math.symja_jas

  public int hashCode() {
    if (sign) {
      return fNumerator.hashCode() + fDenominator.hashCode() * 17;
    }
    return fNumerator.hashCode() + fDenominator.hashCode();
  }
}
origin: org.refcodes/refcodes-criteria

/**
 * {@inheritDoc} Creates a new ASTNode object.
 */
@Override
public IntegerNode createInteger( final String integerString, final int numberFormat ) {
  return new IntegerNode( integerString, numberFormat );
}
origin: axkr/symja_android_library

  @Override
  public int hashCode() {
    return super.hashCode()*43;
  }
}
origin: org.appdapter/ext.bundle.math.symja_jas

public boolean dependsOn(String variableName) {
  for (int i = 1; i < size(); i++) {
    if (get(i).dependsOn(variableName)) {
      return true;
    }
  }
  return false;
}
origin: org.appdapter/ext.bundle.math.symja_jas

/**
 * Creates a new list with no arguments from the given header object .
 */
public FunctionNode createAST(final ASTNode headExpr) {
  return new FunctionNode(headExpr);
}
origin: org.refcodes/refcodes-criteria

/**
 * Hash code.
 * 
 * @return the int
 */
@Override
public int hashCode() {
  if ( fSymbol != null ) {
    fSymbol.hashCode();
  }
  return 0;
}
origin: org.appdapter/ext.bundle.math.symja_jas

public boolean equals(Object obj) {
  if (this == obj) {
    return true;
  }
  if (obj instanceof FractionNode) {
    return fNumerator.equals(((FractionNode) obj).fNumerator) && fDenominator.equals(((FractionNode) obj).fDenominator)
        && sign == ((FractionNode) obj).sign;
  }
  return false;
}
origin: axkr/symja_android_library

@Override
public boolean dependsOn(String variableName) {
  for (int i = 1; i < size(); i++) {
    if (get(i).dependsOn(variableName)) {
      return true;
    }
  }
  return false;
}
origin: org.refcodes/refcodes-criteria

/**
 * {@inheritDoc} Creates a new list with no arguments from the given header
 * object .
 */
@Override
public FunctionNode createAST( final ASTNode headExpr ) {
  return new FunctionNode( headExpr );
}
origin: org.appdapter/ext.bundle.math.symja_jas

  public int hashCode() {
    if (fSymbol != null) {
      return fSymbol.hashCode() * 41;
    }
    return 19;
  }
}
origin: axkr/symja_android_library

@Override
public FunctionNode createFunction(final SymbolNode head, final ASTNode arg1, final ASTNode arg2,
    final ASTNode arg3) {
  return new FunctionNode(head, arg1, arg2, arg3);
}
org.matheclipse.parser.client.ast

Most used classes

  • ASTNode
    The basic node for a parsed expression string
  • FloatNode
    A node for a parsed floating number string. The floating point string is not converted to a binary f
  • FractionNode
    A node for a parsed fraction string
  • FunctionNode
    A list of ASTNode's which represents a parsed function. The head of the function (i.e. Sin, Cos, Tim
  • IParserFactory
    Basic common parser factory methods.
  • NumberNode,
  • PatternNode,
  • StringNode,
  • SymbolNode,
  • Pattern2Node,
  • Pattern3Node,
  • INodeParserFactory
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now