Codota Logo
ParseManager.getParser
Code IndexAdd Codota to your IDE (free)

How to use
getParser
method
in
cc.redberry.core.parser.ParseManager

Best Java code snippets using cc.redberry.core.parser.ParseManager.getParser (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: cc.redberry/core

/**
 * Allows to parse expressions with repeated indices of the same variance (like T_aa or T_a*T^a which results in T^a_a
 * and T^a*T_a respactively)
 *
 * @param b allow or not to parse repeated indices with same variance
 */
public void setParserAllowsSameVariance(boolean b) {
  parseManager.getParser().setAllowSameVariance(b);
}
origin: cc.redberry/core

/**
 * Returns whether repeated indices of the same variance are allowed to be parsed
 *
 * @return whether repeated indices of the same variance are allowed to be parsed
 */
public boolean getParserAllowsSameVariance() {
  return parseManager.getParser().isAllowSameVariance();
}
origin: cc.redberry/physics

protected AbstractTransformationWithGammas(DiracOptions options) {
  checkNotation(options.gammaMatrix, options.gamma5, options.leviCivita);
  if (!options.created)
    options.triggerCreate();
  this.gammaName = options.gammaMatrix.getName();
  this.gamma5Name = options.gamma5 == null ? Integer.MIN_VALUE : options.gamma5.getName();
  final IndexType[] types = TraceUtils.extractTypesFromMatrix(options.gammaMatrix);
  this.metricType = types[0];
  this.matrixType = types[1];
  this.tokenTransformer = createTokenTransformer(metricType, matrixType, options.gammaMatrix, options.gamma5, options.leviCivita);
  this.expandAndEliminate = options.expandAndEliminate;
  this.traceOfOne = (Expression) tokenTransformer.transform(CC.current().getParseManager().getParser().parse("d^a'_a'=" + options.traceOfOne)).toTensor();
  this.deltaTrace = (Expression) tokenTransformer.transform(CC.current().getParseManager().getParser().parse("d^a_a=" + options.dimension)).toTensor();
}
origin: cc.redberry/physics

public SchoutenIdentities4(SimpleTensor leviCivita) {
  this.leviCivita = leviCivita;
  ChangeIndicesTypesAndTensorNames tokenTransformer = new ChangeIndicesTypesAndTensorNames(TypesAndNamesTransformer.Utils.and(
      TypesAndNamesTransformer.Utils.changeName(new String[]{"e"}, new String[]{leviCivita.getStringName()}),
      TypesAndNamesTransformer.Utils.changeType(IndexType.LatinLower, IndicesUtils.getTypeEnum(leviCivita.getIndices().get(0)))));
  this.schouten1 = new Tensor[schoutenCombinations1.length];
  for (int i = 0; i < schouten1.length; i++)
    schouten1[i] = tokenTransformer.transform(CC.current().getParseManager().getParser().parse(schoutenCombinations1[i])).toTensor();
  this.schouten2 = new Tensor[schoutenCombinations2.length];
  for (int i = 0; i < schouten2.length; i++)
    schouten2[i] = tokenTransformer.transform(CC.current().getParseManager().getParser().parse(schoutenCombinations2[i])).toTensor();
  this.schouten3 = new Tensor[schoutenCombinations3.length];
  for (int i = 0; i < schouten3.length; i++)
    schouten3[i] = tokenTransformer.transform(CC.current().getParseManager().getParser().parse(schoutenCombinations3[i])).toTensor();
  allSchouten = new Tensor[][]{schouten1, schouten2, schouten3};
}
cc.redberry.core.parserParseManagergetParser

Popular methods of ParseManager

  • <init>
  • parse
  • reset
    Clears all defaults

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • findViewById (Activity)
  • getContentResolver (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Join (org.hibernate.mapping)
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