We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
目前翻译会把私有变量也翻译出来如下边的logger, 而这个变量在java端是内容的,没有任务语义,应该过滤
import {Logger} from './../../../../../../org/slf4j/Logger'; import java from 'js-to-java'; export interface IUserUpdatePwdRequest { serialVersionUID?: number; pwdStrength?: string; securityType?: string; oldPassword?: string; logger?: Logger; systemType?: string; adminId?: string; newPassword?: string; operationType?: string; userId?: string; token?: string; } export class UserUpdatePwdRequest { constructor(params: IUserUpdatePwdRequest) { this.serialVersionUID = params.serialVersionUID; this.pwdStrength = params.pwdStrength; this.securityType = params.securityType; this.oldPassword = params.oldPassword; this.logger = params.logger; this.systemType = params.systemType; this.adminId = params.adminId; this.newPassword = params.newPassword; this.operationType = params.operationType; this.userId = params.userId; this.token = params.token; } serialVersionUID?: number; pwdStrength?: string; securityType?: string; oldPassword?: string; logger?: Logger; systemType?: string; adminId?: string; newPassword?: string; operationType?: string; userId?: string; token?: string; __fields2java() { return { $class: 'com.qianmi.usercenter.api.bo.security.UserUpdatePwdRequest', $: { serialVersionUID: java.Long(this.serialVersionUID), pwdStrength: java.String(this.pwdStrength), securityType: java.String(this.securityType), oldPassword: java.String(this.oldPassword), logger: this.logger['__fields2java'] ? this.logger['__fields2java']() : this.logger, systemType: java.String(this.systemType), adminId: java.String(this.adminId), newPassword: java.String(this.newPassword), operationType: java.String(this.operationType), userId: java.String(this.userId), token: java.String(this.token), }, }; } } //generate by interpret-cli dubbo2.js
The text was updated successfully, but these errors were encountered:
仅通过private 判断是不可以的, 如下例子,各字段都是private的,然后通过set get方法对外暴露.
所以过滤规则应当为两方面的结合:
注: java中类的继承, 在抽取 ast对象是做了继承折叠 ;
Sorry, something went wrong.
Implement in #151, please review
Successfully merging a pull request may close this issue.
目前翻译会把私有变量也翻译出来如下边的logger, 而这个变量在java端是内容的,没有任务语义,应该过滤
The text was updated successfully, but these errors were encountered: