Package asteroid
Class Nodes
- java.lang.Object
-
- asteroid.Nodes
-
public final class Nodes extends Object
This class provides access to different builders for creating AST nodes.- Since:
- 0.1.0
-
-
Constructor Summary
Constructors Constructor Description Nodes()
-
Method Summary
-
-
-
Method Detail
-
annotation
public AnnotationNodeBuilder annotation(Class annotationClazz)
Creates an instance ofAnnotationNodeBuilder- Parameters:
annotationClazz- the annotation type- Returns:
- an instance of
AnnotationNodeBuilder - Since:
- 0.1.0
-
clazz
public ClassNodeBuilder clazz(Class type)
Creates an instance ofClassNodeBuilder- Parameters:
type- the class type- Returns:
- an instance of
ClassNodeBuilder - Since:
- 0.1.0
-
clazz
public ClassNodeBuilder clazz(String qualifiedName)
Creates an instance ofClassNodeBuilder- Parameters:
qualifiedName- the class full qualified name- Returns:
- and instance of
ClassNodeBuilder - Since:
- 0.1.0
-
clazzWithGenerics
public ClassNodeBuilder clazzWithGenerics(Class type, GenericsType... generics)
Creates an instance ofClassNodeBuilder- Parameters:
type- the class typegenerics- related generics- Returns:
- and instance of
ClassNodeBuilder - Since:
- 0.1.0
-
generics
public GenericsTypeBuilder generics(ClassNode classNode)
Creates an instance ofGenericsTypeBuilder- Parameters:
classNode- the type of the generic type- Returns:
- an instance of
GenericsTypeBuilder - Since:
- 0.1.0
-
constructor
public ConstructorNodeBuilder constructor(int modifiers)
Creates an instance ofConstructorNodeBuilder- Parameters:
modifiers- set of modifiers for the constructor about to build- Returns:
- an instance of
ConstructorNodeBuilder - Since:
- 0.1.0
-
field
public FieldNodeBuilder field(String name)
Creates an instance ofFieldNodeBuilder- Parameters:
name- name of the configuredFieldNode- Returns:
- an instance of
FieldNodeBuilder - Since:
- 0.4.3
-
method
public MethodNodeBuilder method(String methodName)
Creates an instance ofMethodNodeBuilder- Parameters:
methodName- name of the method to create- Returns:
- an instance of
MethodNodeBuilder - Since:
- 0.1.0
-
param
public ParameterNodeBuilder param(String paramName)
Creates an instance ofParameterNodeBuilder. This builder can create instances of typeParameter- Parameters:
paramName- of the parameter- Returns:
- an instance of
ParameterNodeBuilder - Since:
- 0.1.0
-
property
public PropertyNodeBuilder property(String propertyName)
Creates an instnace ofPropertyNodeBuilder. This builder can create instances of typePropertyNode- Parameters:
propertyName- the name of the property- Returns:
- an instance of
PropertyNodeBuilder - Since:
- 0.1.4
-
-