📄 iclastfloat.java
字号:
package com.sri.oaa2.icl;
import antlr_oaa.Token;
import antlr_oaa.RecognitionException;
public final class IclASTFloat extends IclAST
{
IclASTFloat(Token t) throws RecognitionException
{
String text = IclUtils.undoubleQuotes(t.getText());
try {
this.setIclTerm(new IclFloat(Double.parseDouble(text)));
}
catch(Exception e) {
throw new RecognitionException("Error parsing text of float: " + text);
}
}
public IclASTFloat(int id)
{
this.setIclTerm(new IclFloat((double)id));
}
protected void setSign(int i)
{
((IclFloat)(this.getIclTerm())).setValueFromDouble(i * ((IclFloat)this.getIclTerm()).toDouble());
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -