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>childEvalTemplateEventsAll templates evaluated and embedded in thisST.booleanearlyEvalList<InterpEvent>eventsIncludes theEvalTemplateEventfor this template.intipCurrent instruction pointer.InstanceScopeparentTemplate that invoked us.STstTemplate 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 theEvalTemplateEventfor this template. This is a subset ofInterpreter.eventsfield. The finalEvalTemplateEventis stored in 3 places:- In
parent'schildEvalTemplateEventslist - In this list
- In the
Interpreter.eventslist
EvalTemplateEventin 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)
-
-