Package | Description |
---|---|
com.google.gwt.core.server | |
com.google.gwt.i18n.rebind |
This package contains i18n generators.
|
com.google.gwt.i18n.server |
This package contains server-side i18n classes and interfaces.
|
com.google.gwt.i18n.server.impl | |
com.google.gwt.i18n.shared |
This package contains i18n classes and interfaces shared between client and
server.
|
com.google.gwt.safehtml.rebind | |
com.google.gwt.user.rebind | |
javax.validation |
Modifier and Type | Method and Description |
---|---|
static GwtLocale |
ServerGwtBridge.getLocale(ServerGwtBridge.Properties properties) |
Modifier and Type | Field and Description |
---|---|
protected GwtLocale |
AbstractResource.matchLocale |
Modifier and Type | Method and Description |
---|---|
GwtLocale |
AbstractResource.ResourceList.findLeastDerivedLocale(com.google.gwt.core.ext.TreeLogger logger,
GwtLocale locale)
From the list of locales matched for any resources in this resource list,
choose the one that is least derived from the original search locale.
|
GwtLocale |
LocaleUtils.getCompileLocale()
Returns the static compile-time locale for this permutation.
|
Modifier and Type | Method and Description |
---|---|
Set<GwtLocale> |
LocaleUtils.getAllCompileLocales()
Returns the set of all compile-time locales.
|
Set<GwtLocale> |
LocaleUtils.getAllLocales()
Returns the set of all available locales, whether compile-time locales or
runtime locales.
|
Set<GwtLocale> |
LocaleUtils.getRuntimeLocales()
Returns a list of locales which are children of the current compile-time
locale.
|
Modifier and Type | Method and Description |
---|---|
GwtLocale |
AbstractResource.ResourceList.findLeastDerivedLocale(com.google.gwt.core.ext.TreeLogger logger,
GwtLocale locale)
From the list of locales matched for any resources in this resource list,
choose the one that is least derived from the original search locale.
|
String |
LocalizableGenerator.generate(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.GeneratorContext context,
String typeName,
LocaleUtils localeUtils,
GwtLocale locale)
Generate an implementation for a given type.
|
static AbstractResource.ResourceList |
ResourceFactory.getBundle(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.typeinfo.JClassType topClass,
GwtLocale bundleLocale,
boolean isConstants,
com.google.gwt.core.ext.GeneratorContext genCtx) |
protected DateTimePatternGenerator |
CustomDateTimeFormatGenerator.getDateTimePatternGenerator(GwtLocale gwtLocale) |
MessageTranslation |
TypeOracleMessage.getTranslation(GwtLocale locale) |
Constructor and Description |
---|
AbstractResource(GwtLocale matchLocale) |
AnnotationsResource(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.typeinfo.JClassType clazz,
GwtLocale locale,
boolean isConstants)
Create a resource that supplies data from i18n-related annotations.
|
DateTimePatternGenerator(GwtLocale gwtLocale)
Construct a DateTimePatternGenerator for a given locale.
|
Modifier and Type | Class and Description |
---|---|
class |
GwtLocaleImpl
Class representing GWT locales and conversion to/from other formats.
|
Modifier and Type | Method and Description |
---|---|
GwtLocale |
GwtLocaleFactoryImpl.fromComponents(String language,
String script,
String region,
String variant) |
GwtLocale |
GwtLocaleFactoryImpl.fromString(String localeName) |
GwtLocale |
GwtLocaleImpl.getCanonicalForm()
Returns this locale in canonical form.
|
GwtLocale |
GwtLocaleFactoryImpl.getDefault() |
protected GwtLocale |
AbstractMessage.getDefaultLocale() |
GwtLocale |
MessageTranslation.getMatchedLocale()
Get the locale for this translation.
|
GwtLocale |
AbstractMessage.getMatchedLocale() |
Modifier and Type | Method and Description |
---|---|
List<GwtLocale> |
GwtLocaleImpl.getAliases() |
List<GwtLocale> |
GwtLocaleImpl.getCompleteSearchList() |
List<GwtLocale> |
GwtLocaleImpl.getInheritanceChain()
Return a list of locales to search for, in order of preference.
|
Modifier and Type | Method and Description |
---|---|
void |
MessageInterface.accept(MessageInterfaceVisitor cv,
GwtLocale locale)
Visit this class and all messages within it.
|
void |
AbstractMessageInterface.accept(MessageInterfaceVisitor cv,
GwtLocale locale) |
void |
Message.accept(MessageVisitor v,
GwtLocale locale)
Accept a
MessageVisitor , using translations from the requested
locale. |
void |
AbstractMessage.accept(MessageVisitor mv,
GwtLocale locale) |
int |
GwtLocaleImpl.compareTo(GwtLocale o) |
static PluralRule |
AbstractParameter.getLocalizedPluralRule(Class<? extends PluralRule> pluralClass,
GwtLocale locale)
Instantiate a plural rule class.
|
MessageTranslation |
Message.getTranslation(GwtLocale locale)
Get an appropriate translation for this message for a given locale.
|
abstract MessageTranslation |
AbstractMessage.getTranslation(GwtLocale locale) |
boolean |
GwtLocaleImpl.inheritsFrom(GwtLocale parent)
Return true if this locale inherits from the specified locale.
|
boolean |
GwtLocaleImpl.usesSameScript(GwtLocale other)
Checks if this locale uses the same script as another locale, taking into
account default scripts.
|
void |
MessageInterfaceVisitor.visitMessageInterface(MessageInterface msgIntf,
GwtLocale sourceLocale)
Called at the start of processing a new message interface.
|
void |
DefaultVisitor.visitMessageInterface(MessageInterface msgIntf,
GwtLocale sourceLocale) |
Modifier and Type | Method and Description |
---|---|
MessageTranslation |
ReflectionMessage.getTranslation(GwtLocale locale) |
Modifier and Type | Method and Description |
---|---|
GwtLocale |
GwtLocaleFactory.fromComponents(String language,
String script,
String region,
String variant)
Construct a GWT locale from its component parts.
|
GwtLocale |
GwtLocaleFactory.fromString(String localeName)
Get a GWT locale from a string conforming to a subset of BCP47
(specifically assuming extension tags are not present, at most
one variant is present, and grandfathered tags are not supported;
also private-use tags are only supported for the entire tag).
|
GwtLocale |
GwtLocale.getCanonicalForm()
Returns this locale in canonical form.
|
GwtLocale |
GwtLocaleFactory.getDefault()
Returns an instance of the default locale.
|
Modifier and Type | Method and Description |
---|---|
List<GwtLocale> |
GwtLocale.getAliases()
Returns the list of aliases for this locale.
|
List<GwtLocale> |
GwtLocale.getCompleteSearchList()
Returns the complete list of locales to search for the current locale.
|
List<GwtLocale> |
GwtLocale.getInheritanceChain()
Returns a list of locales to search for, in order of preference.
|
Modifier and Type | Method and Description |
---|---|
int |
GwtLocale.compareTo(GwtLocale o)
The default comparison is a lexical ordering.
|
boolean |
GwtLocale.inheritsFrom(GwtLocale parent)
Returns true if this locale inherits from the specified locale.
|
boolean |
GwtLocale.usesSameScript(GwtLocale other)
Checks if this locale uses the same script as another locale.
|
Modifier and Type | Method and Description |
---|---|
void |
SafeHtmlTemplatesImplMethodCreator.createMethodFor(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.typeinfo.JMethod targetMethod,
String key,
AbstractResource.ResourceList resourceList,
GwtLocale locale)
Generate the method body for the target method.
|
protected void |
SafeHtmlTemplatesImplCreator.emitMethodBody(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.typeinfo.JMethod method,
GwtLocale locale) |
Modifier and Type | Method and Description |
---|---|
abstract void |
AbstractMethodCreator.createMethodFor(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.typeinfo.JMethod targetMethod,
String key,
AbstractResource.ResourceList resourceList,
GwtLocale locale)
Generate the method body for the target method.
|
void |
AbstractGeneratorClassCreator.emitClass(com.google.gwt.core.ext.TreeLogger logger,
GwtLocale locale)
Emits the new class.
|
protected abstract void |
AbstractGeneratorClassCreator.emitMethodBody(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.typeinfo.JMethod method,
GwtLocale locale)
Emit method body, arguments are arg1...argN.
|
Modifier and Type | Method and Description |
---|---|
String |
MessageInterpolator.interpolate(String messageTemplate,
MessageInterpolator.Context context,
GwtLocale locale)
Interpolate the message template based on the constraint validation context.
|
Copyright © 2016. All rights reserved.