public class Interpolation extends Object
| Constructor and Description |
|---|
Interpolation() |
| Modifier and Type | Method and Description |
|---|---|
void |
addExpression(Expression expression) |
void |
addFragment(Fragment fragment) |
void |
addText(String text) |
String |
getContent() |
Fragment |
getFragment(int index)
Return the fragment with the specified index
|
Iterable<Fragment> |
getFragments() |
void |
setContent(String content) |
int |
size()
Get the number of fragments
|
String |
toString() |
public void addFragment(Fragment fragment)
public void addExpression(Expression expression)
public void addText(String text)
public void setContent(String content)
public int size()
public Fragment getFragment(int index)
index - - the index of the fragments. must be less than the size of the interpolationIndexOutOfBoundsException - - if the index is negative or greater or equal than sizepublic String getContent()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.