Class AtomParser
java.lang.Object
org.sonatype.maven.polyglot.atom.parsing.AtomParser
Parses the atom token stream into an internal model, which can be emitted as a Maven model.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAtomParser(org.apache.maven.model.building.ModelSource modelSource, List<Token> tokens) -
Method Summary
Modifier and TypeMethodDescriptionprivate TokenanyOf(Token.Kind... ident) private voidchewEols()private voidprivate Stringclassifier := LPAREN IDENT RPARENdependencies(Token.Kind kind, boolean allowNullVersion) Dependencies of a project.private Idid()Id of a project definition.private Idid(boolean allowNullVersion) private Stringprivate voidindent()match(Token.Kind... ident) modules()private org.apache.maven.model.Parentparent()parse()private voidparseException(String message) private voidparseException(String message, Throwable t) private org.apache.maven.model.Pluginplugin(Token.Kind keyword) private List<org.apache.maven.model.Plugin> plugins(Token.Kind keyword) Additional plugins and their configuration.private Projectproject(Repositories repositories) Parsing rule for a single project build definition.properties(Token.Kind kind) private Propertyproperty()private Stringprivate RepositoriesOptional repositories declaration at the top of the file.private ScmElementscm()srcs()Custom directory structure for maven builds.(package private) static StringstripQuotes(String atom) private org.codehaus.plexus.util.xml.Xpp3DomtoXpp3DomTree(String name, Map<String, Object> config) private StringvalidateUrl(String url)
-
Field Details
-
log
-
tokens
-
modelSource
private final org.apache.maven.model.building.ModelSource modelSource -
i
private int i
-
-
Constructor Details
-
AtomParser
-
-
Method Details
-
parseException
-
parseException
-
parse
-
project
Parsing rule for a single project build definition. project := 'project' STRING (AT URL)? ('as' PACKAGING)? EOL (idFragment COLON list EOL)+ -
scm
-
srcs
-
dependencies
Dependencies of a project. The real meat of it. -
plugins
Additional plugins and their configuration. -
plugin
-
toXpp3DomTree
-
configurationMap
-
stripQuotes
-
properties
-
modules
-
classifier
classifier := LPAREN IDENT RPAREN -
property
-
id
Id of a project definition. id := IDENT (DOT IDENT)* COLON IDENT (COLON IDENT)? EOL -
id
-
parent
private org.apache.maven.model.Parent parent() -
relativePath
-
idFragment
-
repositories
Optional repositories declaration at the top of the file. repositories := 'repositories' LEFT_WAVE STRING (COMMA STRING)* -
validateUrl
-
indent
private void indent() -
anyOf
-
match
-
chewEols
private void chewEols() -
chewIndents
private void chewIndents()
-