Class VerveineJOptions
java.lang.Object
fr.inria.verveine.extractor.java.VerveineJOptions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPossible options for SourceAnchors: no source anchor, only entities [default], entities and associations -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanWhether to output all local variables (even those with primitive type) or not (default is not).
Note: allLocals => not classSummaryprotected VerveineJOptions.AnchorOptionsOption: Whether to put SourceAnchors in the entities and/or associationsprotected Collection<String> protected Collection<String> The arguments that were passed to the parser Needed to relativize the source file namesprotected String[]protected StringOption: The version of Java expected by the parserprotected booleanText of comments exported in the model instead of using source anchorprotected booleanwith additional tracing for debuggingstatic final Stringprotected Collection<Pattern> collection of matchers of file name to process excluding expr (seeprotected Collection<String> pathnames to exclude from parsing.
Accepts globbing expressionsprotected StringFile encoding to use to read java filesprotected booleanWhether parsing is incrementalstatic final StringOption for JSON output formatstatic final StringOption for MSE output formatstatic final StringName (without extension) of the default file where to put the MSE modelprotected StringName of the file where to put the MSE model.Format for saving the model in file: MSE or JSONprotected booleanAm I parsing a JDK?protected StringPath to system library for JDT to use (for Java version<= 8: path to rt.jar) (for Java version> 8: path to jrt-fs.jar? have not try so to verify in practice)protected booleanIf possible, should I use a prettyPrinter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]addToClassPath(String[] classPath, List<String> tmpPath) collectAllJars(String sDir) protected voidcollectJavaFiles(File f, Collection<String> files) protected voidcollectJavaFiles(Collection<String> paths, Collection<String> files) booleanvoidconfigureJDTParser(org.eclipse.jdt.core.dom.ASTParser jdtParser) protected PatterncreateMatcher(String expr) Creates a regexp matcher form a globbing expression
Glob to Regexp algorithm from https://stackoverflow.com/questions/1247772/is-there-an-equivalent-of-java-util-regex-for-glob-type-patternsbooleanbooleanisStrict()booleanreadAllJars(String filename) Reads all jar in classpath from a file, one per lineprotected voidsetCodeVersion(String arg) protected inttreats 1 argument or more starting at positioniin the array of argumentsargsprotected voidsetOptionAnchor(String[] args, int i) protected String[]setOptionClassPath(String[] classPath, String[] args, int i) Computes the path of all included jarsprotected voidsetOptionEncoding(String[] args, int i) protected voidsetOptionFormat(String[] args, int i) voidsetOptions(String[] args) protected String[]protected String[]protected StringsourcePathEntryFor(String path) protected voidusage()booleanbooleanwithAnchors(VerveineJOptions.AnchorOptions anchorOption) booleanboolean
-
Field Details
-
OUTPUT_FILE
Name (without extension) of the default file where to put the MSE modelBy default, the extension is provided by the output format
- See Also:
-
MSE_OUTPUT_FORMAT
-
JSON_OUTPUT_FORMAT
-
DEFAULT_CODE_VERSION
- See Also:
-
allLocals
protected boolean allLocalsWhether to output all local variables (even those with primitive type) or not (default is not).
Note: allLocals => not classSummary -
codeVers
Option: The version of Java expected by the parser -
anchors
Option: Whether to put SourceAnchors in the entities and/or associations -
argPath
The arguments that were passed to the parser Needed to relativize the source file names -
argFiles
-
classPathOptions
-
excludePaths
pathnames to exclude from parsing.
Accepts globbing expressions -
excludeMatchers
collection of matchers of file name to process excluding expr (see -
fileEncoding
File encoding to use to read java files -
outputFileName
Name of the file where to put the MSE model. Defaults toOUTPUT_FILE -
outputFormat
Format for saving the model in file: MSE or JSON -
incrementalParsing
protected boolean incrementalParsingWhether parsing is incrementalIncremental means an entire project is parsed by parts, verveineJ saving and reloading the model respectively at the end of an execution and at the satrt of the next one
-
prettyPrint
protected boolean prettyPrintIf possible, should I use a prettyPrinter -
debugging
protected boolean debuggingwith additional tracing for debugging -
commentText
protected boolean commentTextText of comments exported in the model instead of using source anchor -
parsingJdk
protected boolean parsingJdkAm I parsing a JDK? -
pathToSystemLibrary
Path to system library for JDT to use (for Java version<= 8: path to rt.jar) (for Java version> 8: path to jrt-fs.jar? have not try so to verify in practice)
-
-
Constructor Details
-
VerveineJOptions
public VerveineJOptions()
-
-
Method Details
-
setOptions
-
setOption
treats 1 argument or more starting at positioniin the array of argumentsargs- Parameters:
args- TODOi- TODO- Returns:
- The number of argument(s) treated
- Throws:
IllegalArgumentException
-
setOptionClassPath
protected String[] setOptionClassPath(String[] classPath, String[] args, int i) throws IllegalArgumentException Computes the path of all included jars- Throws:
IllegalArgumentException
-
setOptionEncoding
-
setOptionAnchor
-
setOptionFormat
-
collectAllJars
-
addToClassPath
-
readAllJars
-
usage
protected void usage() -
setCodeVersion
-
getOutputFileName
-
configureJDTParser
public void configureJDTParser(org.eclipse.jdt.core.dom.ASTParser jdtParser) -
sourcePathEntries
-
sourcePathEntryFor
-
createMatcher
Creates a regexp matcher form a globbing expression
Glob to Regexp algorithm from https://stackoverflow.com/questions/1247772/is-there-an-equivalent-of-java-util-regex-for-glob-type-patterns -
collectJavaFiles
-
collectJavaFiles
-
sourceFilesToParse
-
withAnchors
public boolean withAnchors() -
withAnchors
-
withLocals
public boolean withLocals() -
withDebug
public boolean withDebug() -
commentsAsText
public boolean commentsAsText() -
isParsingJdk
public boolean isParsingJdk() -
getFileEncoding
-
isStrict
public boolean isStrict() -
isUseMissingPackage
public boolean isUseMissingPackage()
-