Class CompilerClient
- java.lang.Object
-
- org.openprovenance.prov.template.compiler.CompilerClient
-
public class CompilerClient extends Object
-
-
Constructor Summary
Constructors Constructor Description CompilerClient(ProvFactory pFactory, CompilerSQL compilerSQL)
-
Method Summary
Modifier and Type Method Description voidcalculateTypedSuccessors(Set<QualifiedName> allVars, com.fasterxml.jackson.databind.JsonNode bindings_schema, IndexedDocument indexed, Map<String,Set<org.apache.commons.lang3.tuple.Pair<QualifiedName,WasDerivedFrom>>> successors1, Map<String,Set<org.apache.commons.lang3.tuple.Pair<QualifiedName,WasAttributedTo>>> successors2, Map<String,Set<org.apache.commons.lang3.tuple.Pair<QualifiedName,HadMember>>> successors3, Map<String,Set<org.apache.commons.lang3.tuple.Pair<QualifiedName,QualifiedHadMember>>> successors3b, Map<String,Set<org.apache.commons.lang3.tuple.Pair<QualifiedName,SpecializationOf>>> successors4)com.squareup.javapoet.MethodSpecclientAccessorGenerator(String templateName, String packge)com.squareup.javapoet.MethodSpecgenerateApplyMethod(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, String loggerName, String packge, com.fasterxml.jackson.databind.JsonNode bindings_schema)com.squareup.javapoet.MethodSpecgenerateArgsToRecordMethod(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, String loggerName, String packge, com.fasterxml.jackson.databind.JsonNode bindings_schema)com.squareup.javapoet.TypeSpec.BuildergenerateClassInit(String builderName, String builderPackage, String processorName, String processorPackage, String supername)com.squareup.javapoet.MethodSpecgenerateClientCSVConverterMethod_aux(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, String loggerName, String packge, com.fasterxml.jackson.databind.JsonNode bindings_schema)org.apache.commons.lang3.tuple.Pair<com.squareup.javapoet.JavaFile,Map<Integer,List<Integer>>>generateClientLib(Document doc, String name, String templateName, String packge, String resource, com.fasterxml.jackson.databind.JsonNode bindings_schema, IndexedDocument indexed)com.squareup.javapoet.MethodSpecgenerateClientMethod_aux(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, String invoke, String loggerName, com.fasterxml.jackson.databind.JsonNode bindings_schema)com.squareup.javapoet.MethodSpecgenerateClientMethod2(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, com.fasterxml.jackson.databind.JsonNode bindings_schema)com.squareup.javapoet.MethodSpecgenerateClientMethod2(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, com.fasterxml.jackson.databind.JsonNode bindings_schema, boolean legacy)com.squareup.javapoet.MethodSpecgenerateClientMethod2PureCsv(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, com.fasterxml.jackson.databind.JsonNode bindings_schema)com.squareup.javapoet.MethodSpecgenerateClientMethod3(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, com.fasterxml.jackson.databind.JsonNode bindings_schema)com.squareup.javapoet.MethodSpecgenerateClientMethod3static(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, com.fasterxml.jackson.databind.JsonNode bindings_schema)com.squareup.javapoet.MethodSpecgenerateClientMethod4(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, com.fasterxml.jackson.databind.JsonNode bindings_schema, IndexedDocument indexed)com.squareup.javapoet.MethodSpecgenerateClientMethod4b(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, com.fasterxml.jackson.databind.JsonNode bindings_schema, IndexedDocument indexed)com.squareup.javapoet.MethodSpecgenerateClientMethod4static(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, com.fasterxml.jackson.databind.JsonNode bindings_schema, IndexedDocument indexed)org.apache.commons.lang3.tuple.Pair<com.squareup.javapoet.MethodSpec,Map<Integer,List<Integer>>>generateClientMethod5static(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, com.fasterxml.jackson.databind.JsonNode bindings_schema, IndexedDocument indexed)com.squareup.javapoet.MethodSpecgenerateClientMethod6static(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, com.fasterxml.jackson.databind.JsonNode bindings_schema, IndexedDocument indexed)com.squareup.javapoet.MethodSpecgenerateClientSQLConverterMethod_aux(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, String loggerName, String packge, com.fasterxml.jackson.databind.JsonNode bindings_schema)com.squareup.javapoet.MethodSpecgenerateExamplarBean(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, String packge, com.fasterxml.jackson.databind.JsonNode bindings_schema)com.squareup.javapoet.MethodSpecgenerateFactoryMethodToBeanWithArray(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, String packge, com.fasterxml.jackson.databind.JsonNode bindings_schema)com.squareup.javapoet.MethodSpecgenerateFactoryMethodWithBean(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, String packge, com.fasterxml.jackson.databind.JsonNode bindings_schema)com.squareup.javapoet.MethodSpecgenerateNewBean(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, String packge, com.fasterxml.jackson.databind.JsonNode bindings_schema)com.squareup.javapoet.MethodSpecgenerateProcessorConverter(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, String loggerName, String packge, com.fasterxml.jackson.databind.JsonNode bindings_schema)com.squareup.javapoet.MethodSpecgenerateProcessorConverter2(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, String loggerName, String packge, com.fasterxml.jackson.databind.JsonNode bindings_schema)com.squareup.javapoet.MethodSpecgeneratePropertyOrderMethod()com.squareup.javapoet.MethodSpecgenerateRecordCsvProcessorMethod()com.squareup.javapoet.JavaFilegenerateSQLInterface(String packge)List<String>getCommonTypes0()booleangetFoundEscape()Map<String,Set<org.apache.commons.lang3.tuple.Pair<QualifiedName,WasDerivedFrom>>>getSuccessors1()Map<String,Set<org.apache.commons.lang3.tuple.Pair<QualifiedName,WasAttributedTo>>>getSuccessors2()Map<String,Set<org.apache.commons.lang3.tuple.Pair<QualifiedName,HadMember>>>getSuccessors3()Map<String,Set<org.apache.commons.lang3.tuple.Pair<QualifiedName,QualifiedHadMember>>>getSuccessors3b()Map<String,Set<org.apache.commons.lang3.tuple.Pair<QualifiedName,SpecializationOf>>>getSuccessors4()com.squareup.javapoet.MethodSpecnameAccessorGenerator(String templateName)intrelationTypeNumber(Relation rel)com.squareup.javapoet.MethodSpectypedRecordGenerator(String templateName, String packge)
-
-
-
Constructor Detail
-
CompilerClient
public CompilerClient(ProvFactory pFactory, CompilerSQL compilerSQL)
-
-
Method Detail
-
generateClassInit
public com.squareup.javapoet.TypeSpec.Builder generateClassInit(String builderName, String builderPackage, String processorName, String processorPackage, String supername)
-
generateClientLib
public org.apache.commons.lang3.tuple.Pair<com.squareup.javapoet.JavaFile,Map<Integer,List<Integer>>> generateClientLib(Document doc, String name, String templateName, String packge, String resource, com.fasterxml.jackson.databind.JsonNode bindings_schema, IndexedDocument indexed)
-
nameAccessorGenerator
public com.squareup.javapoet.MethodSpec nameAccessorGenerator(String templateName)
-
generateClientMethod_aux
public com.squareup.javapoet.MethodSpec generateClientMethod_aux(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, String invoke, String loggerName, com.fasterxml.jackson.databind.JsonNode bindings_schema)
-
generateClientMethod2
public com.squareup.javapoet.MethodSpec generateClientMethod2(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, com.fasterxml.jackson.databind.JsonNode bindings_schema)
-
generateClientMethod2PureCsv
public com.squareup.javapoet.MethodSpec generateClientMethod2PureCsv(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, com.fasterxml.jackson.databind.JsonNode bindings_schema)
-
generateClientCSVConverterMethod_aux
public com.squareup.javapoet.MethodSpec generateClientCSVConverterMethod_aux(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, String loggerName, String packge, com.fasterxml.jackson.databind.JsonNode bindings_schema)
-
generateClientSQLConverterMethod_aux
public com.squareup.javapoet.MethodSpec generateClientSQLConverterMethod_aux(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, String loggerName, String packge, com.fasterxml.jackson.databind.JsonNode bindings_schema)
-
generateArgsToRecordMethod
public com.squareup.javapoet.MethodSpec generateArgsToRecordMethod(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, String loggerName, String packge, com.fasterxml.jackson.databind.JsonNode bindings_schema)
-
generateProcessorConverter
public com.squareup.javapoet.MethodSpec generateProcessorConverter(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, String loggerName, String packge, com.fasterxml.jackson.databind.JsonNode bindings_schema)
-
generateProcessorConverter2
public com.squareup.javapoet.MethodSpec generateProcessorConverter2(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, String loggerName, String packge, com.fasterxml.jackson.databind.JsonNode bindings_schema)
-
generateApplyMethod
public com.squareup.javapoet.MethodSpec generateApplyMethod(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, String loggerName, String packge, com.fasterxml.jackson.databind.JsonNode bindings_schema)
-
generateClientMethod2
public com.squareup.javapoet.MethodSpec generateClientMethod2(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, com.fasterxml.jackson.databind.JsonNode bindings_schema, boolean legacy)
-
getFoundEscape
public boolean getFoundEscape()
-
generateClientMethod3static
public com.squareup.javapoet.MethodSpec generateClientMethod3static(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, com.fasterxml.jackson.databind.JsonNode bindings_schema)
-
generateClientMethod3
public com.squareup.javapoet.MethodSpec generateClientMethod3(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, com.fasterxml.jackson.databind.JsonNode bindings_schema)
-
generatePropertyOrderMethod
public com.squareup.javapoet.MethodSpec generatePropertyOrderMethod()
-
generateRecordCsvProcessorMethod
public com.squareup.javapoet.MethodSpec generateRecordCsvProcessorMethod()
-
generateClientMethod4
public com.squareup.javapoet.MethodSpec generateClientMethod4(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, com.fasterxml.jackson.databind.JsonNode bindings_schema, IndexedDocument indexed)
-
generateClientMethod4b
public com.squareup.javapoet.MethodSpec generateClientMethod4b(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, com.fasterxml.jackson.databind.JsonNode bindings_schema, IndexedDocument indexed)
-
generateClientMethod4static
public com.squareup.javapoet.MethodSpec generateClientMethod4static(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, com.fasterxml.jackson.databind.JsonNode bindings_schema, IndexedDocument indexed)
-
calculateTypedSuccessors
public void calculateTypedSuccessors(Set<QualifiedName> allVars, com.fasterxml.jackson.databind.JsonNode bindings_schema, IndexedDocument indexed, Map<String,Set<org.apache.commons.lang3.tuple.Pair<QualifiedName,WasDerivedFrom>>> successors1, Map<String,Set<org.apache.commons.lang3.tuple.Pair<QualifiedName,WasAttributedTo>>> successors2, Map<String,Set<org.apache.commons.lang3.tuple.Pair<QualifiedName,HadMember>>> successors3, Map<String,Set<org.apache.commons.lang3.tuple.Pair<QualifiedName,QualifiedHadMember>>> successors3b, Map<String,Set<org.apache.commons.lang3.tuple.Pair<QualifiedName,SpecializationOf>>> successors4)
-
getSuccessors1
public Map<String,Set<org.apache.commons.lang3.tuple.Pair<QualifiedName,WasDerivedFrom>>> getSuccessors1()
-
getSuccessors2
public Map<String,Set<org.apache.commons.lang3.tuple.Pair<QualifiedName,WasAttributedTo>>> getSuccessors2()
-
getSuccessors3
public Map<String,Set<org.apache.commons.lang3.tuple.Pair<QualifiedName,HadMember>>> getSuccessors3()
-
getSuccessors3b
public Map<String,Set<org.apache.commons.lang3.tuple.Pair<QualifiedName,QualifiedHadMember>>> getSuccessors3b()
-
getSuccessors4
public Map<String,Set<org.apache.commons.lang3.tuple.Pair<QualifiedName,SpecializationOf>>> getSuccessors4()
-
generateClientMethod5static
public org.apache.commons.lang3.tuple.Pair<com.squareup.javapoet.MethodSpec,Map<Integer,List<Integer>>> generateClientMethod5static(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, com.fasterxml.jackson.databind.JsonNode bindings_schema, IndexedDocument indexed)
-
generateClientMethod6static
public com.squareup.javapoet.MethodSpec generateClientMethod6static(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, com.fasterxml.jackson.databind.JsonNode bindings_schema, IndexedDocument indexed)
-
relationTypeNumber
public int relationTypeNumber(Relation rel)
-
generateFactoryMethodWithBean
public com.squareup.javapoet.MethodSpec generateFactoryMethodWithBean(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, String packge, com.fasterxml.jackson.databind.JsonNode bindings_schema)
-
generateFactoryMethodToBeanWithArray
public com.squareup.javapoet.MethodSpec generateFactoryMethodToBeanWithArray(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, String packge, com.fasterxml.jackson.databind.JsonNode bindings_schema)
-
generateNewBean
public com.squareup.javapoet.MethodSpec generateNewBean(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, String packge, com.fasterxml.jackson.databind.JsonNode bindings_schema)
-
generateExamplarBean
public com.squareup.javapoet.MethodSpec generateExamplarBean(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, String packge, com.fasterxml.jackson.databind.JsonNode bindings_schema)
-
generateSQLInterface
public com.squareup.javapoet.JavaFile generateSQLInterface(String packge)
-
clientAccessorGenerator
public com.squareup.javapoet.MethodSpec clientAccessorGenerator(String templateName, String packge)
-
-