Class ScriptParameters
- All Implemented Interfaces:
Visitable<ScriptParam>,Serializable,Cloneable,Iterable<ScriptParam>,Collection<ScriptParam>,List<ScriptParam>,RandomAccess,SequencedCollection<ScriptParam>
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(Visitor<ScriptParam> visitor) Accept the given visitor.voidcopyParams(ScriptParameters newParams) Copy param values from the given script parametersstatic voidcopyParams(ScriptParameters oldParams, ScriptParameters newParams) Copies any values from oldParams which have matching ids in newParams.static StringextractParamsComment(String text) Extract the first params comment section found in the given script text.Get the set of paramIdsgetParamValue(String paramId) Get value of given paramIdvoidloadFromMap(Map<String, Object> paramMap) static ScriptParametersparseScriptParams(String text) Extract script parameters from the comments of the given text.setParamValue(String paramId, Object val) Set the value of the specified paramIdtoHTMLString(boolean modifiedOnly) toHTMLString(boolean modifiedOnly, List<String> includes, List<String> excludes) Return an HTML formatted version of the script parameters.Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll, reversed
-
Constructor Details
-
ScriptParameters
public ScriptParameters()
-
-
Method Details
-
extractParamsComment
-
parseScriptParams
Extract script parameters from the comments of the given text. The text must match the syntax defined by the ScriptParams.g ANTLR grammar.- Parameters:
text-- Returns:
- the list of script parameters defined within the script comments
-
copyParams
Copies any values from oldParams which have matching ids in newParams.- Parameters:
oldParams-newParams-
-
copyParams
Copy param values from the given script parameters- Parameters:
newParams-
-
setParamValue
-
getParamValue
-
getParamIds
-
loadFromMap
-
getHashString
-
toHTMLString
-
toHTMLString
-
toHTMLString
-
accept
Description copied from interface:VisitableAccept the given visitor.- Specified by:
acceptin interfaceVisitable<ScriptParam>
-