public class ConstructorNode
extends MethodNode
Represents a constructor declaration
| Constructor and description |
|---|
protected ConstructorNode()Leaves the constructor unset so a subclass can fill the declaration in later. |
ConstructorNode(int modifiers, Statement code)Creates a constructor with no parameters and no checked exceptions. |
ConstructorNode(int modifiers, Parameter[] parameters, ClassNode[] exceptions, Statement code)Creates a constructor named <init> whose return type is void. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public boolean |
firstStatementIsSpecialConstructorCall()Reports whether the first statement is a this(...) or
super(...) call. |
Leaves the constructor unset so a subclass can fill the declaration in later. The name stays null and no exceptions are recorded.
Creates a constructor with no parameters and no checked exceptions.
modifiers - JVM access flags for the constructorcode - constructor body Creates a constructor named <init> whose return type is
void.
modifiers - JVM access flags for the constructorparameters - constructor parametersexceptions - checked exceptions declared on the constructorcode - constructor bodyCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.