Modifier and Type | Method and Description |
---|---|
ClassOrInterfaceDeclaration |
GeneratedJavaParser.ClassOrInterfaceDeclaration(ModifierHolder modifier) |
Modifier and Type | Method and Description |
---|---|
ClassOrInterfaceDeclaration |
CompilationUnit.addClass(java.lang.String name)
Add a public class to the types of this compilation unit
|
ClassOrInterfaceDeclaration |
CompilationUnit.addClass(java.lang.String name,
Modifier... modifiers)
Add a class to the types of this compilation unit
|
ClassOrInterfaceDeclaration |
CompilationUnit.addInterface(java.lang.String name)
Add a public interface class to the types of this compilation unit
|
ClassOrInterfaceDeclaration |
CompilationUnit.addInterface(java.lang.String name,
Modifier... modifiers)
Add an interface to the types of this compilation unit
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<ClassOrInterfaceDeclaration> |
CompilationUnit.getClassByName(java.lang.String className)
Try to get a top level class declaration by its name
|
java.util.Optional<ClassOrInterfaceDeclaration> |
CompilationUnit.getInterfaceByName(java.lang.String interfaceName)
Try to get a top level interface declaration by its name
|
Modifier and Type | Method and Description |
---|---|
ClassOrInterfaceDeclaration |
ClassOrInterfaceDeclaration.clone() |
ClassOrInterfaceDeclaration |
ClassOrInterfaceDeclaration.setExtendedTypes(NodeList<ClassOrInterfaceType> extendedTypes) |
ClassOrInterfaceDeclaration |
ClassOrInterfaceDeclaration.setImplementedTypes(NodeList<ClassOrInterfaceType> implementedTypes) |
ClassOrInterfaceDeclaration |
ClassOrInterfaceDeclaration.setInterface(boolean isInterface) |
ClassOrInterfaceDeclaration |
ClassOrInterfaceDeclaration.setTypeParameters(NodeList<TypeParameter> typeParameters) |
Modifier and Type | Field and Description |
---|---|
private ClassOrInterfaceDeclaration |
LocalClassDeclarationStmt.classDeclaration |
Modifier and Type | Method and Description |
---|---|
ClassOrInterfaceDeclaration |
LocalClassDeclarationStmt.getClassDeclaration() |
Modifier and Type | Method and Description |
---|---|
LocalClassDeclarationStmt |
LocalClassDeclarationStmt.setClassDeclaration(ClassOrInterfaceDeclaration classDeclaration) |
Constructor and Description |
---|
LocalClassDeclarationStmt(ClassOrInterfaceDeclaration classDeclaration) |
LocalClassDeclarationStmt(TokenRange tokenRange,
ClassOrInterfaceDeclaration classDeclaration)
This constructor is used by the parser and is considered private.
|
Modifier and Type | Method and Description |
---|---|
private void |
ModifierValidator.validateClassModifiers(ClassOrInterfaceDeclaration n,
ProblemReporter reporter) |
void |
ModifierValidator.visit(ClassOrInterfaceDeclaration n,
ProblemReporter reporter) |
Modifier and Type | Method and Description |
---|---|
java.util.List<R> |
GenericListVisitorAdapter.visit(ClassOrInterfaceDeclaration n,
A arg) |
R |
GenericVisitor.visit(ClassOrInterfaceDeclaration n,
A arg) |
R |
GenericVisitorAdapter.visit(ClassOrInterfaceDeclaration n,
A arg) |
Visitable |
ModifierVisitor.visit(ClassOrInterfaceDeclaration n,
A arg) |
void |
VoidVisitor.visit(ClassOrInterfaceDeclaration n,
A arg) |
void |
VoidVisitorAdapter.visit(ClassOrInterfaceDeclaration n,
A arg) |
Visitable |
CloneVisitor.visit(ClassOrInterfaceDeclaration n,
java.lang.Object arg) |
java.lang.Boolean |
EqualsVisitor.visit(ClassOrInterfaceDeclaration n,
Visitable arg) |
java.lang.Boolean |
ObjectIdentityEqualsVisitor.visit(ClassOrInterfaceDeclaration n,
Visitable arg) |
java.lang.Integer |
HashCodeVisitor.visit(ClassOrInterfaceDeclaration n,
java.lang.Void arg) |
java.lang.Integer |
ObjectIdentityHashCodeVisitor.visit(ClassOrInterfaceDeclaration n,
java.lang.Void arg) |
Modifier and Type | Method and Description |
---|---|
private void |
NodeGenerator.addMethod(ClassOrInterfaceDeclaration containingClassOrInterface,
CallableDeclaration<?> callable,
java.lang.Runnable onNoExistingMethod) |
protected void |
NodeGenerator.addOrReplaceWhenSameSignature(ClassOrInterfaceDeclaration containingClassOrInterface,
CallableDeclaration<?> callable)
Utility method that looks for a method or constructor with an identical signature as "callable" and replaces it
with callable.
|
protected abstract void |
NodeGenerator.generateNode(BaseNodeMetaModel nodeMetaModel,
CompilationUnit nodeCu,
ClassOrInterfaceDeclaration nodeCoid) |
private void |
VisitorGenerator.generateVisitMethodForNode(BaseNodeMetaModel node,
ClassOrInterfaceDeclaration visitorClass,
CompilationUnit compilationUnit) |
protected void |
NodeGenerator.replaceWhenSameSignature(ClassOrInterfaceDeclaration containingClassOrInterface,
CallableDeclaration<?> callable)
Utility method that looks for a method or constructor with an identical signature as "callable" and replaces it
with callable.
|
Modifier and Type | Method and Description |
---|---|
private void |
PropertyGenerator.generateGetter(BaseNodeMetaModel nodeMetaModel,
ClassOrInterfaceDeclaration nodeCoid,
PropertyMetaModel property) |
protected void |
CloneGenerator.generateNode(BaseNodeMetaModel nodeMetaModel,
CompilationUnit nodeCu,
ClassOrInterfaceDeclaration nodeCoid) |
protected void |
FinalGenerator.generateNode(BaseNodeMetaModel nodeMetaModel,
CompilationUnit nodeCu,
ClassOrInterfaceDeclaration nodeCoid) |
protected void |
GetMetaModelGenerator.generateNode(BaseNodeMetaModel nodeMetaModel,
CompilationUnit nodeCu,
ClassOrInterfaceDeclaration nodeCoid) |
protected void |
GetNodeListsGenerator.generateNode(BaseNodeMetaModel nodeMetaModel,
CompilationUnit nodeCu,
ClassOrInterfaceDeclaration nodeCoid) |
protected void |
MainConstructorGenerator.generateNode(BaseNodeMetaModel nodeMetaModel,
CompilationUnit nodeCu,
ClassOrInterfaceDeclaration nodeCoid) |
protected void |
PropertyGenerator.generateNode(BaseNodeMetaModel nodeMetaModel,
CompilationUnit nodeCu,
ClassOrInterfaceDeclaration nodeCoid) |
protected void |
RemoveMethodGenerator.generateNode(BaseNodeMetaModel nodeMetaModel,
CompilationUnit nodeCu,
ClassOrInterfaceDeclaration nodeCoid) |
protected void |
ReplaceMethodGenerator.generateNode(BaseNodeMetaModel nodeMetaModel,
CompilationUnit nodeCu,
ClassOrInterfaceDeclaration nodeCoid) |
private java.lang.String |
RemoveMethodGenerator.generateRemoveMethodForAttribute(ClassOrInterfaceDeclaration nodeCoid,
BaseNodeMetaModel nodeMetaModel,
PropertyMetaModel property) |
private void |
PropertyGenerator.generateSetter(BaseNodeMetaModel nodeMetaModel,
ClassOrInterfaceDeclaration nodeCoid,
PropertyMetaModel property) |
Modifier and Type | Method and Description |
---|---|
void |
InitializePropertyMetaModelsStatementsGenerator.generate(java.lang.Class<?> nodeClass,
java.lang.reflect.Field field,
ClassOrInterfaceDeclaration nodeMetaModelClass,
java.lang.String nodeMetaModelFieldName,
NodeList<Statement> initializePropertyMetaModelsStatements) |
void |
NodeMetaModelGenerator.generate(java.lang.Class<? extends Node> nodeClass,
ClassOrInterfaceDeclaration metaModelCoid,
NodeList<Statement> initializeNodeMetaModelsStatements,
NodeList<Statement> initializePropertyMetaModelsStatements,
NodeList<Statement> initializeConstructorParametersStatements,
SourceRoot sourceRoot) |
void |
InitializePropertyMetaModelsStatementsGenerator.generateDerivedProperty(java.lang.reflect.Method method,
ClassOrInterfaceDeclaration nodeMetaModelClass,
java.lang.String nodeMetaModelFieldName,
NodeList<Statement> initializePropertyMetaModelsStatements) |
private void |
NodeMetaModelGenerator.moveStaticInitializeToTheEndOfTheClassBecauseWeNeedTheFieldsToInitializeFirst(ClassOrInterfaceDeclaration metaModelCoid) |
Modifier and Type | Method and Description |
---|---|
void |
PrettyPrintVisitor.visit(ClassOrInterfaceDeclaration n,
java.lang.Void arg) |