📄 symbol.java
字号:
package org.markn.contiki.z80.linker;import java.io.File;public class Symbol { private File _file; private Area _area; private int _offset; public Symbol(File file, int offset) { this(file, null, offset); } public Symbol(File file, Area area, int offset) { this._file = file; this._area = area; this._offset = offset; } public File getFile() { return _file; } public Area getArea() { return _area; } public boolean isAbsolute() { return _area == null; } public int getOffset() { return _offset; } public int calcOffset() { if (isAbsolute()) { return _offset; } else { return _offset + _area.getOffset(); } } public String toString() { StringBuffer buf = new StringBuffer(120); buf.append(_file.toString()); buf.append(':'); if (_area != null) { buf.append(_area); } else { buf.append("Absolute"); } buf.append(':'); buf.append(Integer.toHexString(_offset)); return buf.toString(); } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -