Comments (3)
必须实现的attr:Mybatis中,XML文件里select、update等语句标签上的属性id,在FOCUS中以select[id="queryID"]
形式出现。
之前讨论的是只在layer上加attr,但是实际上有占较大比重的情况需要用这样的rule解决:
r-parameterType:
use:
lang: XML
file: (*xmlFile).xml
identifier: "select[id=(&queryId)]/parameterType"
inline:
identifier: (*paramTypePackage:dot)
def:
lang: JAVA
file: (*paramTypePackage:slash).java
讨论: 可以考虑把id这个attr转化一下覆盖到标签下的部分子元素而不是只给语句标签本身,比如给像parameterType
这样的标签属性也附加上比如queryID
这样的attr。
from code2graph.
@shigma 可以描述下现在attr在config中的写法以及在构建uri时加attr的代码写法吗,可以直接贴例子
from code2graph.
构建 uri 添加 attr:
layer.addAttribute(key, value)
配置语法:
use:
lang: XML
file: (*xmlFile).xml
identifier: "select/parameterType"
queryId: xxx
inline:
identifier: (*paramTypePackage:dot)
from code2graph.
Related Issues (20)
- bug: jdt 对连 + 表达式不会递归调用,而是使用 extendedOperands 方法放额外的变量
- bug: gen.java | QUALIFIED_NAME 类型的 ASTNode 节点缺少 reference 边连接类静态变量
- bug: gen.java | .length, .class 属性需特殊处理
- CVE-2022-24329 (Medium) detected in kotlin-stdlib-1.4.31.jar
- bug: gen.java | findEntityNodeByName 导致 data_type 类型边连接出错
- feature: gen.java | ArrayAccess 类型没有进行解析
- bug: gen.java | VARIABLE_DECLARATION_STATEMENT 节点解析失败
- bug: rename后新URI中修改了不应该发生变动的layer HOT 3
- CVE-2022-25857 (High) detected in snakeyaml-1.30.jar, snakeyaml-1.29.jar
- CVE-2022-36033 (Medium) detected in jsoup-1.14.2.jar
- CVE-2022-38752 (Medium) detected in snakeyaml-1.30.jar, snakeyaml-1.29.jar
- CVE-2022-38751 (Medium) detected in snakeyaml-1.30.jar, snakeyaml-1.29.jar
- CVE-2022-38750 (Medium) detected in snakeyaml-1.30.jar, snakeyaml-1.29.jar
- CVE-2022-38749 (Medium) detected in snakeyaml-1.30.jar, snakeyaml-1.29.jar
- CVE-2022-42004 (High) detected in jackson-databind-2.12.2.jar
- CVE-2022-42003 (High) detected in jackson-databind-2.12.2.jar
- CVE-2022-42889 (Critical) detected in commons-text-1.8.jar
- CVE-2022-41854 (Medium) detected in snakeyaml-1.30.jar, snakeyaml-1.29.jar
- CVE-2022-1471 (Critical) detected in snakeyaml-1.30.jar, snakeyaml-1.29.jar
- CVE-2021-46877 (High) detected in jackson-databind-2.12.2.jar
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from code2graph.