NodeWithMembers
A node having members.
The main reason for this interface is to permit users to manipulate homogeneously all nodes with a getMembers method.
Inheritors
Functions
Link copied to clipboard
Adds a constructor to this node with members.
Link copied to clipboard
Add a field to this.
open fun addField(typeClass: Class<out Any>, name: String, modifiers: Array<Modifier.Keyword>): FieldDeclaration
Add a field to this and automatically add the import of the type if needed
Link copied to clipboard
open fun addFieldWithInitializer(type: Type, name: String, initializer: Expression, modifiers: Array<Modifier.Keyword>): FieldDeclaration
open fun addFieldWithInitializer(type: String, name: String, initializer: Expression, modifiers: Array<Modifier.DefaultKeyword>): FieldDeclaration
Add a field to this.
open fun addFieldWithInitializer(typeClass: Class<out Any>, name: String, initializer: Expression, modifiers: Array<Modifier.DefaultKeyword>): FieldDeclaration
Add a field to this and automatically add the import of the type if needed
Link copied to clipboard
Add an initializer block (InitializerDeclaration) to this.
Link copied to clipboard
Link copied to clipboard
Adds a methods with void return by default to this.
Link copied to clipboard
Add a private field to this.
Add a private field to this and automatically add the import of the type if needed.
Link copied to clipboard
Add a protected field to this.
Add a protected field to this and automatically add the import of the type if needed.
Link copied to clipboard
Add a public field to this.
Add a public field to this and automatically add the import of the type if needed.
Link copied to clipboard
Add a static initializer block (InitializerDeclaration) to this.
Link copied to clipboard
open fun getConstructorByParameterTypes(paramTypes: Array<Class<out Any>>): Optional<ConstructorDeclaration>
open fun getConstructorByParameterTypes(paramTypes: Array<String>): Optional<ConstructorDeclaration>
Try to find a ConstructorDeclaration by its parameter types.
Link copied to clipboard
Find all constructors in the members of this node.
Link copied to clipboard
Try to find a ConstructorDeclaration with no parameters.
Link copied to clipboard
Try to find a FieldDeclaration by its name
Link copied to clipboard
Find all fields in the members of this node.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Find all methods in the members of this node.
Link copied to clipboard
Try to find a MethodDeclaration by its name
Link copied to clipboard
Try to find a MethodDeclaration by its parameter types.
Link copied to clipboard
Try to find MethodDeclarations by their name and parameter types.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard