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 Token
anyOf
(Token.Kind... ident) private void
chewEols()
private void
private String
classifier := LPAREN IDENT RPARENdependencies
(Token.Kind kind, boolean allowNullVersion) Dependencies of a project.private Id
id()
Id of a project definition.private Id
id
(boolean allowNullVersion) private String
private void
indent()
match
(Token.Kind... ident) modules()
private org.apache.maven.model.Parent
parent()
parse()
private void
parseException
(String message) private void
parseException
(String message, Throwable t) private org.apache.maven.model.Plugin
plugin
(Token.Kind keyword) private List
<org.apache.maven.model.Plugin> plugins
(Token.Kind keyword) Additional plugins and their configuration.private Project
project
(Repositories repositories) Parsing rule for a single project build definition.properties
(Token.Kind kind) private Property
property()
private String
private Repositories
Optional repositories declaration at the top of the file.private ScmElement
scm()
srcs()
Custom directory structure for maven builds.(package private) static String
stripQuotes
(String atom) private org.codehaus.plexus.util.xml.Xpp3Dom
toXpp3DomTree
(String name, Map<String, Object> config) private String
validateUrl
(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
Custom directory structure for maven builds. -
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()
-