org.objectweb.jac.aspects.i18n
Class I18nAC

java.lang.Object
  |
  +--org.objectweb.jac.core.AspectComponent
        |
        +--org.objectweb.jac.aspects.i18n.I18nAC
All Implemented Interfaces:
BaseProgramListener, Serializable

public class I18nAC
extends AspectComponent

Internationalisation aspect. It allows to translate parameters or return values.

See Also:
Serialized Form

Nested Class Summary
 class I18nAC.TranslatorWrapper
           
 
Field Summary
 
Fields inherited from class org.objectweb.jac.core.AspectComponent
application, blockKeywords, cr, currentConfigMethod, currentImports, firstCall, NOT_SHARED, SHARED, startWeavingCCount, startWeavingCount, startWeavingMethod, startWeavingType, systemListener, wrappers
 
Fields inherited from interface org.objectweb.jac.core.BaseProgramListener
FOUND_OBJECT
 
Constructor Summary
I18nAC()
           
 
Method Summary
 void addTranslation(String key, String translation)
           
 void translateParameters(String classExpr, String methodExpr)
          Translate string parameters of methods.
 void translateReturnedValue(String classExpr, String methodExpr)
          Translate the returned value.
 
Methods inherited from class org.objectweb.jac.core.AspectComponent
addWrapper, afterApplicationStarted, afterRunningWrapper, afterWrap, afterWrappeeInit, attr, attrdef, beforeConfiguration, beforeReload, beforeRunningWrapper, beforeWrappeeInit, configure, defines, defineTimer, doRegister, doUnregister, error, getAC, getApplication, getBlockKeywords, getConfigurationMethods, getConfigurationMethodsName, getConfigurationMethodsName, getDefaultConfigs, getName, getNameCounters, getWrappers, init, isConfigurationMethod, isSystemListener, onExit, pointcut, pointcut, pointcut, pointcut, pointcut, pointcut, pointcut, pointcut, setApplication, setAttribute, setAttribute, setAttribute, setSystemListener, simulateUsingNewInstance, unweave, unwrapAll, updateNameCounters, warning, weave, whenClone, whenCloseDisplay, whenConfigured, whenDeleted, whenDeserialized, whenFree, whenGetObjects, whenNameObject, whenObjectMiss, whenReload, whenRemoteInstantiation, whenSerialized, whenTopologyChanged, whenUsingNewClass, whenUsingNewInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

I18nAC

public I18nAC()
Method Detail

translateParameters

public void translateParameters(String classExpr,
                                String methodExpr)
Translate string parameters of methods.


translateReturnedValue

public void translateReturnedValue(String classExpr,
                                   String methodExpr)
Translate the returned value.


addTranslation

public void addTranslation(String key,
                           String translation)