📄 nametok.java
字号:
// Autogenerated AST node
package org.python.pydev.parser.jython.ast;
import org.python.pydev.parser.jython.SimpleNode;
import java.io.DataOutputStream;
import java.io.IOException;
public class NameTok extends NameTokType implements name_contextType {
public String id;
public int ctx;
public NameTok(String id, int ctx) {
this.id = id;
this.ctx = ctx;
}
public NameTok(String id, int ctx, SimpleNode parent) {
this(id, ctx);
this.beginLine = parent.beginLine;
this.beginColumn = parent.beginColumn;
}
public String toString() {
StringBuffer sb = new StringBuffer("NameTok[");
sb.append("id=");
sb.append(dumpThis(this.id));
sb.append(", ");
sb.append("ctx=");
sb.append(dumpThis(this.ctx,
name_contextType.name_contextTypeNames));
sb.append("]");
return sb.toString();
}
public void pickle(DataOutputStream ostream) throws IOException {
pickleThis(5, ostream);
pickleThis(this.id, ostream);
pickleThis(this.ctx, ostream);
}
public Object accept(VisitorIF visitor) throws Exception {
return visitor.visitNameTok(this);
}
public void traverse(VisitorIF visitor) throws Exception {
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -