congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
PrefixOperator.getFunctionName
Code IndexAdd Tabnine to your IDE (free)

How to use
getFunctionName
method
in
org.matheclipse.parser.client.operator.PrefixOperator

Best Java code snippets using org.matheclipse.parser.client.operator.PrefixOperator.getFunctionName (Showing top 6 results out of 315)

origin: axkr/symja_android_library

  public ASTNode createFunction(final INodeParserFactory factory,
      final ASTNode argument) {
    return factory.createFunction(factory.createSymbol(getFunctionName()),
        argument);
  }
}
origin: org.appdapter/ext.bundle.math.symja_jas

  public ASTNode createFunction(final IParserFactory factory,
      final ASTNode argument) {
    return factory.createFunction(factory.createSymbol(getFunctionName()),
        argument);
  }
}
origin: org.refcodes/refcodes-criteria

  /**
   * Creates the function.
   * 
   * @param factory the factory
   * @param argument the argument
   * @return the AST node
   */
  public ASTNode createFunction( final IParserFactory factory, final ASTNode argument ) {
    return factory.createFunction( factory.createSymbol( getFunctionName() ), argument );
  }
}
origin: axkr/symja_android_library

private final ASTNode parsePrefixOperator(final PrefixOperator prefixOperator) {
  getNextToken();
  final ASTNode temp = parseLookaheadOperator(prefixOperator.getPrecedence());
  if ("PreMinus".equals(prefixOperator.getFunctionName()) && temp instanceof NumberNode) {
    // special cases for negative numbers
    ((NumberNode) temp).toggleSign();
    return temp;
  }
  return prefixOperator.createFunction(fFactory, temp);
}
origin: org.appdapter/ext.bundle.math.symja_jas

private ASTNode parsePrimary() {
  if (fToken == TT_OPERATOR) {
    if (fOperatorString.equals(".")) {
      fCurrentChar = '.';
      return getNumber(false);
    }
    final PrefixOperator prefixOperator = determinePrefixOperator();
    if (prefixOperator != null) {
      getNextToken();
      final ASTNode temp = parseLookaheadOperator(prefixOperator.getPrecedence());
      if (prefixOperator.getFunctionName().equals("PreMinus")) {
        // special cases for negative numbers
        if (temp instanceof NumberNode) {
          ((NumberNode) temp).toggleSign();
          return temp;
        }
      }
      return prefixOperator.createFunction(fFactory, temp);
    }
    throwSyntaxError("Operator: " + fOperatorString + " is no prefix operator.");
  }
  return getPart();
}
origin: org.refcodes/refcodes-criteria

/**
 * Parses the primary.
 * 
 * @return the AST node
 */
private ASTNode parsePrimary() {
  if ( fToken == TT_OPERATOR ) {
    final PrefixOperator prefixOperator = determinePrefixOperator();
    if ( prefixOperator != null ) {
      getNextToken();
      final ASTNode temp = parseLookaheadOperator( prefixOperator.getPrecedence() );
      if ( prefixOperator.getFunctionName().equals( "PreMinus" ) ) {
        // special cases for negative numbers
        if ( temp instanceof NumberNode ) {
          ((NumberNode) temp).toggleSign();
          return temp;
        }
      }
      return prefixOperator.createFunction( fFactory, temp );
    }
    throwSyntaxError( "Operator: " + fOperatorString + " is no prefix operator." );
  }
  return getPart();
}
org.matheclipse.parser.client.operatorPrefixOperatorgetFunctionName

Popular methods of PrefixOperator

  • <init>
    Instantiates a new prefix operator.
  • createFunction
    Creates the function.
  • getPrecedence
  • getOperatorString

Popular in Java

  • Making http post requests using okhttp
  • findViewById (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now