Package jetbrains.mps.lang.pattern
Class ValueContainer
- java.lang.Object
 - 
- jetbrains.mps.lang.pattern.ValueContainer
 
 
- 
public final class ValueContainer extends Object
Records values matched with a pattern. XXX instead of this container, could have dedicated value holders, and pass them right intoNodeMatcher.capture(String)orChildMatcher.capture(String), having fields with this value holders in the generated matcher. It gonna take a bit more work (extra classes), hence stick to this one unless get time/taste to refactor.- Since:
 - 3.4
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ValueContainer() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SNode>getList(String variableName)SNodegetNode(String variableName)StringgetProperty(String variableName)SNodegetRefTarget(String variableName)voidput(String variableName, String value)voidput(String variableName, List<SNode> value)voidput(String variableName, SNode value)voidput(String variableName, SNodeReference targetRef, SNode target)voidreset(ValueContainer other)Reset values in this container with values from supplied one 
 - 
 
- 
- 
Method Detail
- 
put
public void put(String variableName, SNodeReference targetRef, SNode target)
 
- 
reset
public void reset(@NotNull ValueContainer other)
Reset values in this container with values from supplied one 
 - 
 
 -