substbehaviour.java
来自「计算机代数系统」· Java 代码 · 共 28 行
JAVA
28 行
package net.sf.yacas;/** Substing one expression for another. The simplest form * of substitution */class SubstBehaviour implements SubstBehaviourBase{ public SubstBehaviour(LispEnvironment aEnvironment,LispPtr aToMatch, LispPtr aToReplaceWith) { iEnvironment = aEnvironment; iToMatch = aToMatch; iToReplaceWith = aToReplaceWith; } public boolean Matches(LispPtr aResult, LispPtr aElement) throws Exception { if (LispStandard.InternalEquals(iEnvironment, aElement, iToMatch)) { aResult.Set(iToReplaceWith.Get().Copy(false)); return true; } return false; } LispEnvironment iEnvironment; LispPtr iToMatch; LispPtr iToReplaceWith;};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?