Uses of Class
org.stringtemplate.v4.InstanceScope
Packages that use InstanceScope
Package
Description
-
Uses of InstanceScope in org.stringtemplate.v4
Fields in org.stringtemplate.v4 declared as InstanceScopeModifier and TypeFieldDescriptionfinal InstanceScope
InstanceScope.parent
Template that invoked us.Methods in org.stringtemplate.v4 that return types with arguments of type InstanceScopeModifier and TypeMethodDescriptionstatic List
<InstanceScope> Interpreter.getScopeStack
(InstanceScope scope, boolean topdown) Methods in org.stringtemplate.v4 with parameters of type InstanceScopeModifier and TypeMethodDescriptionprotected int
Interpreter._exec
(STWriter out, InstanceScope scope) protected void
Interpreter.addToList
(InstanceScope scope, List<Object> list, Object o) Interpreter.convertAnythingIteratableToIterator
(InstanceScope scope, Object o) Iterator
<?> Interpreter.convertAnythingToIterator
(InstanceScope scope, Object o) int
Interpreter.exec
(STWriter out, InstanceScope scope) Execute templateself
and return how many characters it wrote toout
.Interpreter.first
(InstanceScope scope, Object v) Return the first attribute if multi-valued, or the attribute itself if single-valued.Interpreter.getAttribute
(InstanceScope scope, String name) Find an attribute via dynamic scoping up enclosing scope chain.protected ST
STGroup.getEmbeddedInstanceOf
(Interpreter interp, InstanceScope scope, String name) Interpreter.getEnclosingInstanceStack
(InstanceScope scope, boolean topdown) static String
Interpreter.getEnclosingInstanceStackString
(InstanceScope scope) If an instance of x is enclosed in a y which is in a z, return aString
of these instance names in order from topmost to lowest; here that would be[z y x]
.static List
<EvalTemplateEvent> Interpreter.getEvalTemplateEventStack
(InstanceScope scope, boolean topdown) protected int
Interpreter.getExprStartChar
(InstanceScope scope) protected int
Interpreter.getExprStopChar
(InstanceScope scope) protected Object
Interpreter.getObjectProperty
(STWriter out, InstanceScope scope, Object o, Object property) static List
<InstanceScope> Interpreter.getScopeStack
(InstanceScope scope, boolean topdown) protected void
Interpreter.indent
(STWriter out, InstanceScope scope, int strIndex) Interpreter.last
(InstanceScope scope, Object v) Return the last attribute if multi-valued, or the attribute itself if single-valued.protected void
Interpreter.map
(InstanceScope scope, Object attr, ST st) (package private) void
protected void
Interpreter.printForTrace
(StringBuilder tr, InstanceScope scope, Object o) private <T> String
Interpreter.renderObject
(InstanceScope scope, String formatString, Object o, Class<T> attributeType) Interpreter.rest
(InstanceScope scope, Object v) Return everything but the first attribute if multi-valued, ornull
if single-valued.Interpreter.reverse
(InstanceScope scope, Object v) Return a list with the same elements asv
but in reverse order.protected void
Interpreter.rot_map
(InstanceScope scope, Object attr, List<ST> prototypes) Renders expressions of the form<names:a()>
or<names:a(),b()>
.Interpreter.rot_map_iterator
(InstanceScope scope, Iterator<?> attr, List<ST> prototypes) void
Interpreter.setDefaultArguments
(STWriter out, InstanceScope scope) Set any default argument values that were not set by the invoking template or byST.add(java.lang.String, java.lang.Object)
directly.protected void
Interpreter.setFirstArgument
(InstanceScope scope, ST st, Object attr) (package private) void
Interpreter.storeArgs
(InstanceScope scope, int nargs, ST st) (package private) void
Interpreter.strip
(InstanceScope scope, Object v) Return a new list withoutnull
values.(package private) void
Interpreter.super_new
(InstanceScope scope, String name, int nargs) (package private) void
protected String
Interpreter.toString
(STWriter out, InstanceScope scope, Object value) protected void
Interpreter.trace
(InstanceScope scope, int ip) protected void
Interpreter.trackDebugEvent
(InstanceScope scope, InterpEvent e) For every event, we track in overallInterpreter.events
list and inself
'sevents
list so that each template has a list of events used to create it.Interpreter.trunc
(InstanceScope scope, Object v) Return all but the last element.protected int
Interpreter.writeIterator
(STWriter out, InstanceScope scope, Object o, String[] options) protected int
Interpreter.writeObject
(STWriter out, InstanceScope scope, Object o, String[] options) Generic method to emit text for an object.protected int
Interpreter.writeObjectNoOptions
(STWriter out, InstanceScope scope, Object o) Write out an expression result that doesn't use expression options.protected int
Interpreter.writeObjectWithOptions
(STWriter out, InstanceScope scope, Object o, Object[] options) Write out an expression result that uses expression options.protected int
Interpreter.writePOJO
(STWriter out, InstanceScope scope, Object o, String[] options) protected ST.AttributeList
Interpreter.zip_map
(InstanceScope scope, List<Object> exprs, ST prototype) Renders expressions of the form<names,phones:{n,p | ...}>
or<a,b:t()>
.Constructors in org.stringtemplate.v4 with parameters of type InstanceScope -
Uses of InstanceScope in org.stringtemplate.v4.debug
Fields in org.stringtemplate.v4.debug declared as InstanceScopeConstructors in org.stringtemplate.v4.debug with parameters of type InstanceScopeModifierConstructorDescriptionEvalExprEvent
(InstanceScope scope, int start, int stop, int exprStartChar, int exprStopChar) EvalTemplateEvent
(InstanceScope scope, int exprStartChar, int exprStopChar) IndentEvent
(InstanceScope scope, int start, int stop, int exprStartChar, int exprStopChar) InterpEvent
(InstanceScope scope, int outputStartChar, int outputStopChar) -
Uses of InstanceScope in org.stringtemplate.v4.gui
Fields in org.stringtemplate.v4.gui declared as InstanceScopeMethods in org.stringtemplate.v4.gui with parameters of type InstanceScopeModifier and TypeMethodDescriptionprotected void
STViz.updateAttributes
(InstanceScope scope, STViewFrame m) protected void
STViz.updateStack
(InstanceScope scope, STViewFrame m) Constructors in org.stringtemplate.v4.gui with parameters of type InstanceScope -
Uses of InstanceScope in org.stringtemplate.v4.misc
Fields in org.stringtemplate.v4.misc declared as InstanceScopeModifier and TypeFieldDescriptionSTNoSuchAttributeException.scope
final InstanceScope
STRuntimeMessage.scope
Methods in org.stringtemplate.v4.misc with parameters of type InstanceScopeModifier and TypeMethodDescriptionvoid
ErrorManager.runTimeError
(Interpreter interp, InstanceScope scope, ErrorType error) void
ErrorManager.runTimeError
(Interpreter interp, InstanceScope scope, ErrorType error, Object arg) void
ErrorManager.runTimeError
(Interpreter interp, InstanceScope scope, ErrorType error, Object arg, Object arg2) void
ErrorManager.runTimeError
(Interpreter interp, InstanceScope scope, ErrorType error, Object arg, Object arg2, Object arg3) void
ErrorManager.runTimeError
(Interpreter interp, InstanceScope scope, ErrorType error, Throwable e, Object arg) Constructors in org.stringtemplate.v4.misc with parameters of type InstanceScopeModifierConstructorDescriptionSTNoSuchAttributeException
(String name, InstanceScope scope) STRuntimeMessage
(Interpreter interp, ErrorType error, int ip, InstanceScope scope) STRuntimeMessage
(Interpreter interp, ErrorType error, int ip, InstanceScope scope, Object arg) STRuntimeMessage
(Interpreter interp, ErrorType error, int ip, InstanceScope scope, Throwable e, Object arg) STRuntimeMessage
(Interpreter interp, ErrorType error, int ip, InstanceScope scope, Throwable e, Object arg, Object arg2) STRuntimeMessage
(Interpreter interp, ErrorType error, int ip, InstanceScope scope, Throwable e, Object arg, Object arg2, Object arg3)