congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ProblemFormatter.format
Code IndexAdd Tabnine to your IDE (free)

How to use
format
method
in
org.apache.royale.compiler.clients.problems.ProblemFormatter

Best Java code snippets using org.apache.royale.compiler.clients.problems.ProblemFormatter.format (Showing top 10 results out of 315)

origin: org.apache.royale.compiler/compiler-common

  /**
   * Returns a String for displaying this compiler problem in a console window.
   * 
   * This is for debugging purposes, therefore no non-test code should call this.
   * 
   * There are typically four lines output for each problem:
   *  location (file and line number)
   *  description
   *  
   * For example:
   * 
   * C:\Faramir\compiler\trunk\tests\resources\milestones\m1\M1.as:4
   * Syntax error: '+' not allowed here.
   */
  @Override
  public String toString()
  {
    return ProblemFormatter.DEFAULT_FORMATTER.format(this);
  }
}
origin: apache/royale-compiler

  /**
   * Returns a String for displaying this compiler problem in a console window.
   * 
   * This is for debugging purposes, therefore no non-test code should call this.
   * 
   * There are typically four lines output for each problem:
   *  location (file and line number)
   *  description
   *  
   * For example:
   * 
   * C:\Faramir\compiler\trunk\tests\resources\milestones\m1\M1.as:4
   * Syntax error: '+' not allowed here.
   */
  @Override
  public String toString()
  {
    return ProblemFormatter.DEFAULT_FORMATTER.format(this);
  }
}
origin: apache/royale-compiler

/**
 *  Print a pre-filtered sequence of problems.
 *  
 *  @param problems compiler problems
 *  @return count of printed problems
 */
public int printProblems(final Iterable<ICompilerProblem> problems)
{
  int problemCount = 0;
  PrintWriter writer = new PrintWriter(new PrintStream(outputStream));
  
  for (final ICompilerProblem problem : problems)
  {
    writer.println(formatter.format(problem));
    problemCount++;
  }
  writer.flush();
  return problemCount;
}
origin: org.apache.royale.compiler/compiler-common

/**
 *  Print a pre-filtered sequence of problems.
 *  
 *  @param problems compiler problems
 *  @return count of printed problems
 */
public int printProblems(final Iterable<ICompilerProblem> problems)
{
  int problemCount = 0;
  PrintWriter writer = new PrintWriter(new PrintStream(outputStream));
  
  for (final ICompilerProblem problem : problems)
  {
    writer.println(formatter.format(problem));
    problemCount++;
  }
  writer.flush();
  return problemCount;
}
origin: org.apache.royale.compiler/compiler

public String getProblems()
{
  StringBuffer problems = new StringBuffer();
  if (problemQuery != null && problemQuery.hasFilteredProblems())
  {
    for (final ICompilerProblem problem : problemQuery.getFilteredProblems())
    {
      problems.append(problemFormatter.format(problem));
    }
  }
  return problems.toString().trim();
}
origin: apache/royale-compiler

public String getProblems()
{
  StringBuffer problems = new StringBuffer();
  if (problemQuery != null && problemQuery.hasFilteredProblems())
  {
    for (final ICompilerProblem problem : problemQuery.getFilteredProblems())
    {
      problems.append(problemFormatter.format(problem));
    }
  }
  return problems.toString().trim();
}
origin: org.apache.royale.compiler/compiler

String description = super.format(problem);
origin: apache/royale-compiler

String description = super.format(problem);
origin: apache/royale-compiler

try
  String errText = ProblemFormatter.DEFAULT_FORMATTER.format(prob);
  msg.setMessage(errText);
origin: apache/royale-compiler

try
  String errText = ProblemFormatter.DEFAULT_FORMATTER.format(prob);
  msg.setMessage(errText);
org.apache.royale.compiler.clients.problemsProblemFormatterformat

Javadoc

Returns a readable description of the problem, by substituting field values for named placeholders such as ${name} in the message specified for this compiler problem.

Popular methods of ProblemFormatter

  • <init>
  • getMessage
    Returns message for the specified key using the resource bundle generated for the specified locale.
  • substitute
    Resolves the tokens in the text using the key/value pairs in the specified map. Each token in the me

Popular in Java

  • Start an intent from android
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JButton (javax.swing)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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