Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.jdt.internal.compiler.problem
Class DefaultProblemFactory  view DefaultProblemFactory download DefaultProblemFactory.java

java.lang.Object
  extended byorg.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory
All Implemented Interfaces:
org.eclipse.jdt.internal.compiler.IProblemFactory

public class DefaultProblemFactory
extends java.lang.Object
implements org.eclipse.jdt.internal.compiler.IProblemFactory


Field Summary
private static org.eclipse.jdt.internal.compiler.util.HashtableOfInt DEFAULT_LOCALE_TEMPLATES
           
private static char[] DOUBLE_QUOTES
           
private  java.util.Locale locale
           
 org.eclipse.jdt.internal.compiler.util.HashtableOfInt messageTemplates
           
private static char[] SINGLE_QUOTE
           
 
Constructor Summary
DefaultProblemFactory()
           
DefaultProblemFactory(java.util.Locale loc)
           
 
Method Summary
 org.eclipse.jdt.core.compiler.IProblem createProblem(char[] originatingFileName, int problemId, java.lang.String[] problemArguments, java.lang.String[] messageArguments, int severity, int startPosition, int endPosition, int lineNumber)
          Answer a new IProblem created according to the parameters value originatingFileName the name of the file name from which the problem is originated problemId the problem id problemArguments the fully qualified arguments recorded inside the problem messageArguments the arguments needed to set the error message (shorter names than problemArguments ones) severity the severity of the problem startPosition the starting position of the problem endPosition the end position of the problem lineNumber the line on which the problem occured
 java.util.Locale getLocale()
          Answer the locale used to retrieve the error messages
 java.lang.String getLocalizedMessage(int id, java.lang.String[] problemArguments)
           
private static int keyFromID(int id)
           
static org.eclipse.jdt.internal.compiler.util.HashtableOfInt loadMessageTemplates(java.util.Locale loc)
          This method initializes the MessageTemplates class variable according to the current Locale.
 java.lang.String localizedMessage(org.eclipse.jdt.core.compiler.IProblem problem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messageTemplates

public org.eclipse.jdt.internal.compiler.util.HashtableOfInt messageTemplates

locale

private java.util.Locale locale

DEFAULT_LOCALE_TEMPLATES

private static org.eclipse.jdt.internal.compiler.util.HashtableOfInt DEFAULT_LOCALE_TEMPLATES

DOUBLE_QUOTES

private static final char[] DOUBLE_QUOTES

SINGLE_QUOTE

private static final char[] SINGLE_QUOTE
Constructor Detail

DefaultProblemFactory

public DefaultProblemFactory()

DefaultProblemFactory

public DefaultProblemFactory(java.util.Locale loc)
Method Detail

createProblem

public org.eclipse.jdt.core.compiler.IProblem createProblem(char[] originatingFileName,
                                                            int problemId,
                                                            java.lang.String[] problemArguments,
                                                            java.lang.String[] messageArguments,
                                                            int severity,
                                                            int startPosition,
                                                            int endPosition,
                                                            int lineNumber)
Answer a new IProblem created according to the parameters value
  • originatingFileName the name of the file name from which the problem is originated
  • problemId the problem id
  • problemArguments the fully qualified arguments recorded inside the problem
  • messageArguments the arguments needed to set the error message (shorter names than problemArguments ones)
  • severity the severity of the problem
  • startPosition the starting position of the problem
  • endPosition the end position of the problem
  • lineNumber the line on which the problem occured

Specified by:
createProblem in interface org.eclipse.jdt.internal.compiler.IProblemFactory

keyFromID

private static final int keyFromID(int id)

getLocale

public java.util.Locale getLocale()
Answer the locale used to retrieve the error messages

Specified by:
getLocale in interface org.eclipse.jdt.internal.compiler.IProblemFactory

getLocalizedMessage

public final java.lang.String getLocalizedMessage(int id,
                                                  java.lang.String[] problemArguments)
Specified by:
getLocalizedMessage in interface org.eclipse.jdt.internal.compiler.IProblemFactory

localizedMessage

public final java.lang.String localizedMessage(org.eclipse.jdt.core.compiler.IProblem problem)

loadMessageTemplates

public static org.eclipse.jdt.internal.compiler.util.HashtableOfInt loadMessageTemplates(java.util.Locale loc)
This method initializes the MessageTemplates class variable according to the current Locale.