Constructor and Description |
---|
JdtHelper() |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.jdt.core.dom.NormalAnnotation |
addAnnotation(org.eclipse.jdt.core.dom.BodyDeclaration decl,
String name) |
static void |
addSimpleAnnotation(org.eclipse.jdt.core.dom.BodyDeclaration decl,
String name) |
static <T extends org.eclipse.jdt.core.dom.ASTNode> |
copyNode(org.eclipse.jdt.core.dom.AST ast,
T node) |
static void |
createCompilationUnit(Path root,
String packageName,
String name,
Charset charset,
BiConsumer<org.eclipse.jdt.core.dom.AST,org.eclipse.jdt.core.dom.CompilationUnit> consumer) |
static void |
createField(org.eclipse.jdt.core.dom.TypeDeclaration decl,
String typeName,
String fieldName,
org.eclipse.jdt.core.dom.Modifier.ModifierKeyword... keywords) |
static org.eclipse.jdt.core.dom.MethodDeclaration |
createGetter(org.eclipse.jdt.core.dom.AST ast,
org.eclipse.jdt.core.dom.Type type,
String name) |
static void |
createParameter(org.eclipse.jdt.core.dom.MethodDeclaration decl,
String typeName,
String name,
org.eclipse.jdt.core.dom.Modifier.ModifierKeyword... keywords) |
static void |
createParameter(org.eclipse.jdt.core.dom.MethodDeclaration decl,
org.eclipse.jdt.core.dom.Type type,
String name,
org.eclipse.jdt.core.dom.Modifier.ModifierKeyword... keywords) |
static void |
createThisAssignment(org.eclipse.jdt.core.dom.Block body,
String name) |
static void |
make(org.eclipse.jdt.core.dom.AST ast,
List<? super Object> decl,
org.eclipse.jdt.core.dom.Modifier.ModifierKeyword... keywords) |
static void |
make(org.eclipse.jdt.core.dom.BodyDeclaration decl,
org.eclipse.jdt.core.dom.Modifier.ModifierKeyword... keywords) |
static void |
make(org.eclipse.jdt.core.dom.SingleVariableDeclaration decl,
org.eclipse.jdt.core.dom.Modifier.ModifierKeyword... keywords) |
static org.eclipse.jdt.core.dom.StringLiteral |
newStringLiteral(org.eclipse.jdt.core.dom.AST ast,
String value) |
public JdtHelper()
public static org.eclipse.jdt.core.dom.StringLiteral newStringLiteral(org.eclipse.jdt.core.dom.AST ast, String value)
public static void make(org.eclipse.jdt.core.dom.AST ast, List<? super Object> decl, org.eclipse.jdt.core.dom.Modifier.ModifierKeyword... keywords)
public static void make(org.eclipse.jdt.core.dom.BodyDeclaration decl, org.eclipse.jdt.core.dom.Modifier.ModifierKeyword... keywords)
public static void make(org.eclipse.jdt.core.dom.SingleVariableDeclaration decl, org.eclipse.jdt.core.dom.Modifier.ModifierKeyword... keywords)
public static void addSimpleAnnotation(org.eclipse.jdt.core.dom.BodyDeclaration decl, String name)
public static org.eclipse.jdt.core.dom.NormalAnnotation addAnnotation(org.eclipse.jdt.core.dom.BodyDeclaration decl, String name)
public static void createCompilationUnit(Path root, String packageName, String name, Charset charset, BiConsumer<org.eclipse.jdt.core.dom.AST,org.eclipse.jdt.core.dom.CompilationUnit> consumer)
public static void createField(org.eclipse.jdt.core.dom.TypeDeclaration decl, String typeName, String fieldName, org.eclipse.jdt.core.dom.Modifier.ModifierKeyword... keywords)
public static void createParameter(org.eclipse.jdt.core.dom.MethodDeclaration decl, org.eclipse.jdt.core.dom.Type type, String name, org.eclipse.jdt.core.dom.Modifier.ModifierKeyword... keywords)
public static void createParameter(org.eclipse.jdt.core.dom.MethodDeclaration decl, String typeName, String name, org.eclipse.jdt.core.dom.Modifier.ModifierKeyword... keywords)
public static void createThisAssignment(org.eclipse.jdt.core.dom.Block body, String name)
public static <T extends org.eclipse.jdt.core.dom.ASTNode> T copyNode(org.eclipse.jdt.core.dom.AST ast, T node)
public static org.eclipse.jdt.core.dom.MethodDeclaration createGetter(org.eclipse.jdt.core.dom.AST ast, org.eclipse.jdt.core.dom.Type type, String name)
Copyright © 2017–2018. All rights reserved.