Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
MERGE
(t)-[dependsOn1:DEPENDS_ON]->(t2)
SET
dependsOn1=dependsOn,
dependsOn1.resolved=true
dependsOn1 = properties(dependsOn),
dependsOn1.resolved = true
} IN TRANSACTIONS
RETURN
count(*) as ResolvedDependencies
Expand All @@ -95,8 +95,8 @@
MERGE
(t)-[extends1:EXTENDS]->(t2)
SET
extends1=extends,
extends1.resolved=true
extends1 = properties(extends),
extends1.resolved = true
} IN TRANSACTIONS
RETURN
count(*) as ResolvedSuperClass
Expand All @@ -120,8 +120,8 @@
MERGE
(t)-[implements1:IMPLEMENTS]->(t2)
SET
implements1=implements,
implements1.resolved=true
implements1 = properties(implements),
implements1.resolved = true
} IN TRANSACTIONS
RETURN
count(*) as ResolvedInterfaces
Expand All @@ -145,8 +145,8 @@
MERGE
(f)-[ofType1:OF_TYPE]->(t)
SET
ofType1=ofType,
ofType1.resolved=true
ofType1 = properties(ofType),
ofType1.resolved = true
} IN TRANSACTIONS
RETURN
count(*) as ResolvedFieldTypes
Expand All @@ -163,15 +163,40 @@
</description>
<cypher><![CDATA[
MATCH
(m:Method)-[throws:THROWS]->(:Java:Type)-[:RESOLVES_TO]->(t:Java:Type)
(m:Method)-[throws:THROWS{declaration:false}]->(:Java:Type)-[:RESOLVES_TO]->(t:Java:Type)
CALL {
WITH
m, throws, t
MERGE
(m)-[throws1:THROWS]->(t)
(m)-[throws1:THROWS{lineNumber:throws.lineNumber}]->(t)
SET
throws1=throws,
throws1.resolved=true
throws1 = properties(throws),
throws1.resolved = true
}
RETURN
count(*) as ResolvedExceptionTypes
]]></cypher>
<verify>
<aggregation/>
</verify>
</concept>

<concept id="java-classpath:ResolveThrowsDeclaration">
<requiresConcept refId="java-classpath:ResolveType"/>
<description>Propagates declared "THROWS" relations between methods and types to their resolved types with a property
"resolved:true".
</description>
<cypher><![CDATA[
MATCH
(m:Method)-[throws:THROWS{declaration:true}]->(:Java:Type)-[:RESOLVES_TO]->(t:Java:Type)
CALL {
WITH
m, throws, t
MERGE
(m)-[throws1:THROWS{declaration:true}]->(t)
SET
throws1 = properties(throws),
throws1.resolved = true
}
RETURN
count(*) as ResolvedExceptionTypes
Expand All @@ -195,8 +220,8 @@
MERGE
(m)-[returns1:RETURNS]->(t)
SET
returns1=returns,
returns1.resolved=true
returns1 = properties(returns),
returns1.resolved = true
} IN TRANSACTIONS
RETURN
count(*) as ResolvedReturnTypes
Expand All @@ -220,8 +245,8 @@
MERGE
(m)-[ofType1:OF_TYPE]->(t)
SET
ofType1=ofType,
ofType1.resolved=true
ofType1 = properties(ofType),
ofType1.resolved = true
} IN TRANSACTIONS
RETURN
count(*) as ResolvedParameterTypes
Expand All @@ -245,8 +270,8 @@
MERGE
(a)-[ofType1:OF_TYPE]->(t)
SET
ofType1=ofType,
ofType1.resolved=true
ofType1 = properties(ofType),
ofType1.resolved = true
} IN TRANSACTIONS
RETURN
count(*) as ResolvedAnnotationTypes
Expand All @@ -270,8 +295,8 @@
MERGE
(b)-[ofRawType1:OF_RAW_TYPE]->(t)
SET
ofRawType1=ofRawType,
ofRawType1.resolved=true
ofRawType1 = properties(ofRawType),
ofRawType1.resolved = true
} IN TRANSACTIONS
RETURN
count(*) as ResolvedRawTypes
Expand All @@ -296,8 +321,8 @@
MERGE
(v)-[is1:IS]->(e2)
SET
is1=is,
is1.resolved=true
is1= properties(is),
is1.resolved = true
} IN TRANSACTIONS
RETURN
count(*) as ResolvedValueTypes
Expand All @@ -321,8 +346,8 @@
MERGE
(m)-[reads1:READS {relationId: id(reads)}]->(f2)
SET
reads1=reads,
reads1.resolved=true
reads1 = properties(reads),
reads1.resolved = true
REMOVE
reads1.relationId
} IN TRANSACTIONS
Expand All @@ -348,8 +373,8 @@
MERGE
(m)-[writes1:WRITES {relationId: id(writes)}]->(f2)
SET
writes1=writes,
writes1.resolved=true
writes1 = properties(writes),
writes1.resolved = true
REMOVE
writes1.relationId
} IN TRANSACTIONS
Expand All @@ -375,8 +400,8 @@
MERGE
(m)-[invokes1:INVOKES {relationId : id(invokes)}]->(m2)
SET
invokes1=invokes,
invokes1.resolved=true
invokes1 = properties(invokes),
invokes1.resolved = true
REMOVE
invokes1.relationId
}
Expand All @@ -394,6 +419,7 @@
<requiresConcept refId="java-classpath:ResolveImplements"/>
<requiresConcept refId="java-classpath:ResolveFieldType"/>
<requiresConcept refId="java-classpath:ResolveThrows"/>
<requiresConcept refId="java-classpath:ResolveThrowsDeclaration"/>
<requiresConcept refId="java-classpath:ResolveReturns"/>
<requiresConcept refId="java-classpath:ResolveParameterType"/>
<requiresConcept refId="java-classpath:ResolveAnnotationType"/>
Expand Down
Loading
Loading