public class EclipseStatementCreationHelper extends Object
| Constructor and Description |
|---|
EclipseStatementCreationHelper(org.eclipse.jdt.core.dom.AST factory)
Create a helper that will create nodes using the provided
factory. |
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.jdt.core.dom.Name |
getName(org.eclipse.jdt.core.dom.Name name,
String next)
Returns a
Name that starts with an existing name and continues with
next. |
org.eclipse.jdt.core.dom.Name |
getName(String... parts)
Returns a
Name that represents the qualified name consisting of the given
parts. |
protected org.eclipse.jdt.core.dom.Statement |
wrap(List<org.eclipse.jdt.core.dom.Statement> statements)
Wraps the given
statements into a Block. |
protected org.eclipse.jdt.core.dom.Statement |
wrap(org.eclipse.jdt.core.dom.Statement[] statements)
Wraps the given
statements into a Block. |
public EclipseStatementCreationHelper(org.eclipse.jdt.core.dom.AST factory)
factory.factory - The AST to use.public org.eclipse.jdt.core.dom.Name getName(String... parts)
Name that represents the qualified name consisting of the given
parts.parts - The parts building the name (each dot-separated element is one
parameter). Must contain at least one element.protected org.eclipse.jdt.core.dom.Name getName(org.eclipse.jdt.core.dom.Name name,
String next)
Name that starts with an existing name and continues with
next.name - An exesting name.next - The part to continue name with. Must not be null.name and continues with next.
Must not be null.protected org.eclipse.jdt.core.dom.Statement wrap(org.eclipse.jdt.core.dom.Statement[] statements)
statements into a Block.statements - Statements to wrap.statements. The provided statement if
statements contains only one statements. null if
statements is null.protected org.eclipse.jdt.core.dom.Statement wrap(List<org.eclipse.jdt.core.dom.Statement> statements)
statements into a Block.statements - Statements to wrap.statements. The provided statement if
statements contains only one statements. null if
statements is null.