/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/ |
D | NodeGenerator.java | 22 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/ |
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 | 38 …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() 43 … nodeMetaModel.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
|
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 | 22 …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()
|
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 | AcceptGenerator.java | 25 …protected void generateNode(BaseNodeMetaModel nodeMetaModel, CompilationUnit nodeCu, ClassOrInterf… in generateNode() argument 26 if(nodeMetaModel.isAbstract()){ in generateNode()
|
D | NodeModifierGenerator.java | 15 …protected void generateNode(BaseNodeMetaModel nodeMetaModel, CompilationUnit nodeCu, ClassOrInterf… in generateNode() argument
|
/external/javaparser/javaparser-core-serialization/src/main/java/com/github/javaparser/serialization/ |
D | JavaParserJsonDeserializer.java | 70 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()
|
D | JavaParserJsonSerializer.java | 70 …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/ |
D | JavaParserMetaModel.java | 323 nodeMetaModels.add(nodeMetaModel); in initializeNodeMetaModels() 362 …nodeMetaModel.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/ |
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 | 648 return JavaParserMetaModel.nodeMetaModel; in getMetaModel()
|