📄 primitivemessagenode.java
字号:
class PrimitiveMessageNode extends EvaluatableNode
{
PrimitiveSelectorNode vPrimitiveSelectorNode;
static PrimitiveMessageNode parsePrimitiveMessage(Environment env, Scanner s)throws ParserException, ScannerException
{
PrimitiveSelectorNode tmpPrimitiveSelectorNode;
tmpPrimitiveSelectorNode= PrimitiveSelectorNode.parserPrimitiveSelector(env,s);
matchBracket(s,'(');
matchBracket(s,')');
return new PrimitiveMessageNode(tmpPrimitiveSelectorNode);
}
static boolean mIsPrimitiveMessage(Scanner s) throws ScannerException
{
return PrimitiveSelectorNode.mIsPrimitiveSelector(s);
}
PrimitiveMessageNode(PrimitiveSelectorNode aPrimitiveSelectorNode)
{
vPrimitiveSelectorNode= aPrimitiveSelectorNode;
}
PrimitiveMessageNode()
{
vPrimitiveSelectorNode= null;
}
String format(int indent)
{
return vPrimitiveSelectorNode.format(indent)+"()";
}
Value evaluate(Environment env) throws InterpreterException
{
return vPrimitiveSelectorNode.evaluate(env);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -