Package org.eclipse.jface.text.templates
Class TemplateBuffer
- java.lang.Object
-
- org.eclipse.jface.text.templates.TemplateBuffer
-
public final class TemplateBuffer extends java.lang.ObjectA template buffer is a container for a string and variables.Clients may instantiate this class.
- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description TemplateBuffer(java.lang.String string, TemplateVariable[] variables)Creates a template buffer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetString()Returns the string of the template buffer.TemplateVariable[]getVariables()Returns the variable positions of the template buffer.voidsetContent(java.lang.String string, TemplateVariable[] variables)Sets the content of the template buffer.
-
-
-
Constructor Detail
-
TemplateBuffer
public TemplateBuffer(java.lang.String string, TemplateVariable[] variables)Creates a template buffer.- Parameters:
string- the stringvariables- the variable positions
-
-
Method Detail
-
setContent
public final void setContent(java.lang.String string, TemplateVariable[] variables)Sets the content of the template buffer.- Parameters:
string- the stringvariables- the variable positions
-
getString
public final java.lang.String getString()
Returns the string of the template buffer.- Returns:
- the string representation of the template buffer
-
getVariables
public final TemplateVariable[] getVariables()
Returns the variable positions of the template buffer. The returned array is owned by this variable and must not be modified.- Returns:
- the variable positions of the template buffer
-
-