Package org.stringtemplate.v4
Class InstanceScope
- java.lang.Object
-
- org.stringtemplate.v4.InstanceScope
-
public class InstanceScope extends Object
-
-
Field Summary
Fields Modifier and Type Field Description List<EvalTemplateEvent>
childEvalTemplateEvents
All templates evaluated and embedded in thisST
.boolean
earlyEval
List<InterpEvent>
events
Includes theEvalTemplateEvent
for this template.int
ip
Current instruction pointer.InstanceScope
parent
Template that invoked us.ST
st
Template we're executing.
-
Constructor Summary
Constructors Constructor Description InstanceScope(InstanceScope parent, ST st)
-
-
-
Field Detail
-
parent
public final InstanceScope parent
Template that invoked us.
-
st
public final ST st
Template we're executing.
-
ip
public int ip
Current instruction pointer.
-
events
public List<InterpEvent> events
Includes theEvalTemplateEvent
for this template. This is a subset ofInterpreter.events
field. The finalEvalTemplateEvent
is stored in 3 places:- In
parent
'schildEvalTemplateEvents
list - In this list
- In the
Interpreter.events
list
EvalTemplateEvent
in its list.All events get added to the
parent
's event list. - In
-
childEvalTemplateEvents
public List<EvalTemplateEvent> childEvalTemplateEvents
-
earlyEval
public boolean earlyEval
-
-
Constructor Detail
-
InstanceScope
public InstanceScope(InstanceScope parent, ST st)
-
-