Package ca.phon.query.script
Class QueryScript
java.lang.Object
ca.phon.script.BasicScript
ca.phon.query.script.LazyQueryScript
ca.phon.query.script.QueryScript
- All Implemented Interfaces:
IExtendable
,PhonScript
,Appendable
,CharSequence
,Cloneable
Holds the text for a query script.
Handles methods for parsing the script paramaters
and default tags.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Get a script context for this script.Resets query context.static void
setupScriptRequirements
(PhonScript script) Setup required package imports and require() library paths.Methods inherited from class ca.phon.query.script.LazyQueryScript
getScript, getScriptURL
Methods inherited from class ca.phon.script.BasicScript
addClassImport, addPackageImport, addRequirePath, append, append, append, append, append, append, append, append, append, append, append, append, append, appendCodePoint, capacity, charAt, codePointAt, codePointBefore, codePointCount, delete, deleteCharAt, ensureCapacity, getBuffer, getChars, getClassImports, getExtension, getExtensions, getPackageImports, getRequirePaths, indexOf, indexOf, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, lastIndexOf, lastIndexOf, length, offsetByCodePoints, putExtension, removeClassImport, removeExtension, removePackageImport, removeRequirePath, replace, reverse, setCharAt, setLength, subSequence, substring, substring, trimToSize
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty, toString
-
Constructor Details
-
QueryScript
Constructor -
QueryScript
-
-
Method Details
-
setupScriptRequirements
Setup required package imports and require() library paths.- Parameters:
script
-
-
resetContext
Description copied from class:BasicScript
Resets query context.- Specified by:
resetContext
in interfacePhonScript
- Overrides:
resetContext
in classBasicScript
- Returns:
- the current context (before reset)
-
getContext
Description copied from interface:PhonScript
Get a script context for this script. The context is used to compile and evaulate the script.- Specified by:
getContext
in interfacePhonScript
- Overrides:
getContext
in classBasicScript
- Returns:
- the script context
-
getQueryContext
-
getHashString
-
clone
- Overrides:
clone
in classBasicScript
-