Home
last modified time | relevance | path

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

/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/
DNodeGenerator.java22 for (BaseNodeMetaModel nodeMetaModel : JavaParserMetaModel.getNodeMetaModels()) { in generate()
23 Pair<CompilationUnit, ClassOrInterfaceDeclaration> result = parseNode(nodeMetaModel); in generate()
24 generateNode(nodeMetaModel, result.a, result.b); in generate()
29 …ted Pair<CompilationUnit, ClassOrInterfaceDeclaration> parseNode(BaseNodeMetaModel nodeMetaModel) { in parseNode() argument
30 …CompilationUnit nodeCu = sourceRoot.parse(nodeMetaModel.getPackageName(), nodeMetaModel.getTypeNam… in parseNode()
31 …ClassOrInterfaceDeclaration nodeCoid = nodeCu.getClassByName(nodeMetaModel.getTypeName()).orElseTh… in parseNode()
39 …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.java38 …protected void generateNode(BaseNodeMetaModel nodeMetaModel, CompilationUnit nodeCu, ClassOrInterf… in generateNode() argument
39 for (PropertyMetaModel property : nodeMetaModel.getDeclaredPropertyMetaModels()) { in generateNode()
40 generateGetter(nodeMetaModel, nodeCoid, property); in generateNode()
41 generateSetter(nodeMetaModel, nodeCoid, property); in generateNode()
43nodeMetaModel.getDerivedPropertyMetaModels().forEach(p -> derivedProperties.put(p.getName(), p)); in generateNode()
46 …private void generateSetter(BaseNodeMetaModel nodeMetaModel, ClassOrInterfaceDeclaration nodeCoid,… in generateSetter() argument
52 if (property == JavaParserMetaModel.nodeMetaModel.commentPropertyMetaModel) { in generateSetter()
96 …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.java22 …protected void generateNode(BaseNodeMetaModel nodeMetaModel, CompilationUnit nodeCu, ClassOrInterf… in generateNode() argument
25 nodeMetaModel.getSuperNodeMetaModel().ifPresent(s -> annotateOverridden(replaceNodeMethod)); in generateNode()
31 for (PropertyMetaModel property : nodeMetaModel.getDeclaredPropertyMetaModels()) { in generateNode()
46 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()
DAcceptGenerator.java25 …protected void generateNode(BaseNodeMetaModel nodeMetaModel, CompilationUnit nodeCu, ClassOrInterf… in generateNode() argument
26 if(nodeMetaModel.isAbstract()){ in generateNode()
DNodeModifierGenerator.java15 …protected void generateNode(BaseNodeMetaModel nodeMetaModel, CompilationUnit nodeCu, ClassOrInterf… in generateNode() argument
/external/javaparser/javaparser-core-serialization/src/main/java/com/github/javaparser/serialization/
DJavaParserJsonDeserializer.java70 BaseNodeMetaModel nodeMetaModel = getNodeMetaModel(Class.forName(serializedNodeType)) in deserializeObject() local
80 …Optional<PropertyMetaModel> optionalPropertyMetaModel = nodeMetaModel.getAllPropertyMetaModels().s… in deserializeObject()
108 Node node = nodeMetaModel.construct(parameters); in deserializeObject()
117 …throw new IllegalStateException("Unknown propertyKey: " + nodeMetaModel.getQualifiedClassName() + … in deserializeObject()
DJavaParserJsonSerializer.java70 …BaseNodeMetaModel nodeMetaModel = JavaParserMetaModel.getNodeMetaModel(node.getClass()).orElseThro… in serialize() local
79 for (PropertyMetaModel propertyMetaModel : nodeMetaModel.getAllPropertyMetaModels()) { in serialize()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/metamodel/
DJavaParserMetaModel.java323 nodeMetaModels.add(nodeMetaModel); in initializeNodeMetaModels()
362nodeMetaModel.commentPropertyMetaModel = new PropertyMetaModel(nodeMetaModel, "comment", com.githu… in initializePropertyMetaModels()
363 nodeMetaModel.getDeclaredPropertyMetaModels().add(nodeMetaModel.commentPropertyMetaModel); in initializePropertyMetaModels()
763 for (BaseNodeMetaModel nodeMetaModel : nodeMetaModels) { in getNodeMetaModel()
764 if (nodeMetaModel.getTypeName().equals(c.getSimpleName())) { in getNodeMetaModel()
765 return Optional.of(nodeMetaModel); in getNodeMetaModel()
771 public static final NodeMetaModel nodeMetaModel = new NodeMetaModel(Optional.empty()); field in JavaParserMetaModel
773 …ationMetaModel bodyDeclarationMetaModel = new BodyDeclarationMetaModel(Optional.of(nodeMetaModel));
777 …c final StatementMetaModel statementMetaModel = new StatementMetaModel(Optional.of(nodeMetaModel));
779 …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.java648 return JavaParserMetaModel.nodeMetaModel; in getMetaModel()