org.nuiton.i18n.plugin.parser.impl
Class ParserJavaActionConfigMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.nuiton.plugin.AbstractPlugin
          extended by org.nuiton.i18n.plugin.AbstractI18nMojo
              extended by org.nuiton.i18n.plugin.parser.AbstractI18nParserMojo
                  extended by org.nuiton.i18n.plugin.parser.impl.ParserJavaMojo
                      extended by org.nuiton.i18n.plugin.parser.impl.ParserJavaActionConfigMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, Parser, org.nuiton.plugin.Plugin
Direct Known Subclasses:
ParserJavaTabConfigMojo

public class ParserJavaActionConfigMojo
extends ParserJavaMojo

Un parseur java pour scanner les annotations ActionConfig

Author:
chemit
Is defined by the goal name:
parserJavaActionConfig
Is bound to the specified phase of the standard build lifecycle:
generate-resources

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin
org.nuiton.plugin.Plugin.InitState, org.nuiton.plugin.Plugin.Packaging
 
Field Summary
protected static Pattern MATCH_PATTERN
           
 
Fields inherited from class org.nuiton.i18n.plugin.parser.impl.ParserJavaMojo
cp, defaultBasedir, defaultIncludes, filter
 
Fields inherited from class org.nuiton.i18n.plugin.parser.AbstractI18nParserMojo
backupGetter, entries, events, fileTreated, keysModifier, oldLanguage, oldParser, result, safeMode, showTouchedFiles, t0, touchFile, treadedFiles, treateDefaultEntry, verboseLog
 
Fields inherited from class org.nuiton.i18n.plugin.AbstractI18nMojo
artifactId, bundles, encoding, genSrc, locales, out, project, silent, src, strictMode, verbose
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ParserJavaActionConfigMojo()
           
 
Method Summary
 String extract(String i18nString)
           
protected  String getKeyModifierEnd()
           
protected  String getKeyModifierStart()
           
protected  String getOutGetter()
           
 void parseLine(File srcFile, String line)
          Parse une partie du fichier
 
Methods inherited from class org.nuiton.i18n.plugin.parser.impl.ParserJavaMojo
getDefaultBasedir, getDefaultExcludes, getDefaultIncludes, init, newFileUpdater, parseFile
 
Methods inherited from class org.nuiton.i18n.plugin.parser.AbstractI18nParserMojo
addDefaultEntry, addParserEvent, doAction, getVerboseLog, isStrictMode, parse, parseEntry, removeParserEvent, saveGetterFile
 
Methods inherited from class org.nuiton.i18n.plugin.AbstractI18nMojo
addGetter, backupFile, checkBundle, checkPackaging, getArtifactId, getBackupFile, getEncoding, getGetterFile, getI18nFile, getProject, isVerbose, needGeneration, setEncoding, setProject, setVerbose
 
Methods inherited from class org.nuiton.plugin.AbstractPlugin
acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addTestResourceDir, addUrlToUrlsList, afterExecute, checkResource, checkRunOnceDone, checkSkip, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getTemplate, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, writeFile
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.maven.plugin.Mojo
getLog, setLog
 

Field Detail

MATCH_PATTERN

protected static final Pattern MATCH_PATTERN
Constructor Detail

ParserJavaActionConfigMojo

public ParserJavaActionConfigMojo()
Method Detail

getKeyModifierStart

protected String getKeyModifierStart()
Overrides:
getKeyModifierStart in class ParserJavaMojo
Returns:
the starting regex expression to catch keys in key modifier

getKeyModifierEnd

protected String getKeyModifierEnd()
Overrides:
getKeyModifierEnd in class ParserJavaMojo
Returns:
the ending regex expression to catch keys in key modifier

getOutGetter

protected String getOutGetter()
Overrides:
getOutGetter in class ParserJavaMojo
Returns:
the outGetter to use for the instance (java.getter,...)

extract

public String extract(String i18nString)

parseLine

public void parseLine(File srcFile,
                      String line)
Description copied from interface: Parser
Parse une partie du fichier

Specified by:
parseLine in interface Parser
Overrides:
parseLine in class ParserJavaMojo
Parameters:
srcFile - le fichier à parser
line - la ligne à parser


Copyright © 2007-2010 CodeLutin. All Rights Reserved.