/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/ |
D | NodeGenerator.java | 28 for (BaseNodeMetaModel nodeMetaModel : JavaParserMetaModel.getNodeMetaModels()) { in generate() 29 Pair<CompilationUnit, ClassOrInterfaceDeclaration> result = parseNode(nodeMetaModel); in generate() 30 generateNode(nodeMetaModel, result.a, result.b); in generate() 35 …ted Pair<CompilationUnit, ClassOrInterfaceDeclaration> parseNode(BaseNodeMetaModel nodeMetaModel) { in parseNode() argument 36 …CompilationUnit nodeCu = sourceRoot.parse(nodeMetaModel.getPackageName(), nodeMetaModel.getTypeNam… in parseNode() 37 …ClassOrInterfaceDeclaration nodeCoid = nodeCu.getClassByName(nodeMetaModel.getTypeName()).orElseTh… in parseNode() 45 …protected abstract void generateNode(BaseNodeMetaModel nodeMetaModel, CompilationUnit nodeCu, Clas… in generateNode() argument
|
/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/ |
D | RemoveMethodGenerator.java | 24 …protected void generateNode(BaseNodeMetaModel nodeMetaModel, CompilationUnit nodeCu, ClassOrInterf… in generateNode() argument 27 nodeMetaModel.getSuperNodeMetaModel().ifPresent(s -> annotateOverridden(removeNodeMethod)); in generateNode() 33 for (PropertyMetaModel property : nodeMetaModel.getDeclaredPropertyMetaModels()) { in generateNode() 44 …ng removeAttributeMethodName = generateRemoveMethodForAttribute(nodeCoid, nodeMetaModel, property); in generateNode() 52 if (nodeMetaModel.getSuperNodeMetaModel().isPresent()) { in generateNode() 77 …dForAttribute(ClassOrInterfaceDeclaration nodeCoid, BaseNodeMetaModel nodeMetaModel, PropertyMetaM… in generateRemoveMethodForAttribute() argument 79 …hod = (MethodDeclaration) parseBodyDeclaration(f("public %s %s() {}", nodeMetaModel.getTypeName(),… in generateRemoveMethodForAttribute()
|
D | GetMetaModelGenerator.java | 20 …protected void generateNode(BaseNodeMetaModel nodeMetaModel, CompilationUnit nodeCu, ClassOrInterf… in generateNode() argument 22 nodeMetaModel.isRootNode() ? "" : "@Override", in generateNode() 23 nodeMetaModel.getClass().getSimpleName(), in generateNode() 24 nodeMetaModel.getMetaModelFieldName())); in generateNode() 27 nodeCu.addImport(nodeMetaModel.getClass().getName()); in generateNode()
|
D | PropertyGenerator.java | 34 …protected void generateNode(BaseNodeMetaModel nodeMetaModel, CompilationUnit nodeCu, ClassOrInterf… in generateNode() argument 35 for (PropertyMetaModel property : nodeMetaModel.getDeclaredPropertyMetaModels()) { in generateNode() 36 generateGetter(nodeMetaModel, nodeCoid, property); in generateNode() 37 generateSetter(nodeMetaModel, nodeCoid, property); in generateNode() 39 … nodeMetaModel.getDerivedPropertyMetaModels().forEach(p -> derivedProperties.put(p.getName(), p)); in generateNode() 42 …private void generateSetter(BaseNodeMetaModel nodeMetaModel, ClassOrInterfaceDeclaration nodeCoid,… in generateSetter() argument 48 if (property == JavaParserMetaModel.nodeMetaModel.commentPropertyMetaModel) { in generateSetter() 92 …private void generateGetter(BaseNodeMetaModel nodeMetaModel, ClassOrInterfaceDeclaration nodeCoid,… in generateGetter() argument
|
D | MainConstructorGenerator.java | 24 …protected void generateNode(BaseNodeMetaModel nodeMetaModel, CompilationUnit nodeCu, ClassOrInterf… in generateNode() argument 25 if (nodeMetaModel.is(Node.class)) { in generateNode() 38 for (PropertyMetaModel parameter : nodeMetaModel.getConstructorParameters()) { in generateNode() 40 if (nodeMetaModel.getDeclaredPropertyMetaModels().contains(parameter)) { in generateNode()
|
D | ReplaceMethodGenerator.java | 23 …protected void generateNode(BaseNodeMetaModel nodeMetaModel, CompilationUnit nodeCu, ClassOrInterf… in generateNode() argument 26 nodeMetaModel.getSuperNodeMetaModel().ifPresent(s -> annotateOverridden(replaceNodeMethod)); in generateNode() 32 for (PropertyMetaModel property : nodeMetaModel.getDeclaredPropertyMetaModels()) { in generateNode() 47 if (nodeMetaModel.getSuperNodeMetaModel().isPresent()) { in generateNode()
|
D | CloneGenerator.java | 20 …protected void generateNode(BaseNodeMetaModel nodeMetaModel, CompilationUnit nodeCu, ClassOrInterf… in generateNode() argument 24 nodeMetaModel.getTypeNameGenerified(), in generateNode() 25 nodeMetaModel.getTypeNameGenerified() in generateNode()
|
D | TypeCastingGenerator.java | 35 …protected void generateNode(BaseNodeMetaModel nodeMetaModel, CompilationUnit nodeCu, ClassOrInterf… in generateNode() argument 38 if(nodeMetaModel == baseNode) { in generateNode() 43 if (nodeMetaModel.isInstanceOfMetaModel(baseNode)) { in generateNode() 53 final String typeName = nodeMetaModel.getTypeName(); in generateNode()
|
D | FinalGenerator.java | 15 …protected void generateNode(BaseNodeMetaModel nodeMetaModel, CompilationUnit nodeCu, ClassOrInterf… in generateNode() argument 16 nodeCoid.setFinal(!nodeMetaModel.isAbstract()); in generateNode()
|
D | AcceptGenerator.java | 25 …protected void generateNode(BaseNodeMetaModel nodeMetaModel, CompilationUnit nodeCu, ClassOrInterf… in generateNode() argument 26 if(nodeMetaModel.isAbstract()){ in generateNode()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/metamodel/ |
D | JavaParserMetaModel.java | 323 nodeMetaModels.add(nodeMetaModel); in initializeNodeMetaModels() 361 …nodeMetaModel.commentPropertyMetaModel = new PropertyMetaModel(nodeMetaModel, "comment", com.githu… in initializePropertyMetaModels() 362 nodeMetaModel.getDeclaredPropertyMetaModels().add(nodeMetaModel.commentPropertyMetaModel); in initializePropertyMetaModels() 756 for (BaseNodeMetaModel nodeMetaModel : nodeMetaModels) { in getNodeMetaModel() 757 if (nodeMetaModel.getTypeNameGenerified().equals(c.getSimpleName())) { in getNodeMetaModel() 758 return Optional.of(nodeMetaModel); in getNodeMetaModel() 764 public static final NodeMetaModel nodeMetaModel = new NodeMetaModel(Optional.empty()); field in JavaParserMetaModel 766 …ationMetaModel bodyDeclarationMetaModel = new BodyDeclarationMetaModel(Optional.of(nodeMetaModel)); 770 …c final StatementMetaModel statementMetaModel = new StatementMetaModel(Optional.of(nodeMetaModel)); 772 …inal ExpressionMetaModel expressionMetaModel = new ExpressionMetaModel(Optional.of(nodeMetaModel)); [all …]
|
/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/ |
D | NoCommentEqualsVisitorGenerator.java | 57 if (field.equals(JavaParserMetaModel.nodeMetaModel.commentPropertyMetaModel)) in generateVisitMethodBody()
|
D | NoCommentHashCodeVisitorGenerator.java | 61 if (field.equals(JavaParserMetaModel.nodeMetaModel.commentPropertyMetaModel)) { in generateVisitMethodBody()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/ |
D | Node.java | 624 return JavaParserMetaModel.nodeMetaModel; in getMetaModel()
|