Home
last modified time | relevance | path

Searched refs:nodeMetaModel (Results 1 – 14 of 14) sorted by relevance

/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/
DNodeGenerator.java28 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/
DRemoveMethodGenerator.java24 …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()
DGetMetaModelGenerator.java20 …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()
DPropertyGenerator.java34 …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()
39nodeMetaModel.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
DMainConstructorGenerator.java24 …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()
DReplaceMethodGenerator.java23 …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()
DCloneGenerator.java20 …protected void generateNode(BaseNodeMetaModel nodeMetaModel, CompilationUnit nodeCu, ClassOrInterf… in generateNode() argument
24 nodeMetaModel.getTypeNameGenerified(), in generateNode()
25 nodeMetaModel.getTypeNameGenerified() in generateNode()
DTypeCastingGenerator.java35 …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()
DFinalGenerator.java15 …protected void generateNode(BaseNodeMetaModel nodeMetaModel, CompilationUnit nodeCu, ClassOrInterf… in generateNode() argument
16 nodeCoid.setFinal(!nodeMetaModel.isAbstract()); in generateNode()
DAcceptGenerator.java25 …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/
DJavaParserMetaModel.java323 nodeMetaModels.add(nodeMetaModel); in initializeNodeMetaModels()
361nodeMetaModel.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/
DNoCommentEqualsVisitorGenerator.java57 if (field.equals(JavaParserMetaModel.nodeMetaModel.commentPropertyMetaModel)) in generateVisitMethodBody()
DNoCommentHashCodeVisitorGenerator.java61 if (field.equals(JavaParserMetaModel.nodeMetaModel.commentPropertyMetaModel)) { in generateVisitMethodBody()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/
DNode.java624 return JavaParserMetaModel.nodeMetaModel; in getMetaModel()