本文整理汇总了Java中jdk.nashorn.internal.ir.SplitNode类的典型用法代码示例。如果您正苦于以下问题:Java SplitNode类的具体用法?Java SplitNode怎么用?Java SplitNode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SplitNode类属于jdk.nashorn.internal.ir包,在下文中一共展示了SplitNode类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: enterSplitNode
import jdk.nashorn.internal.ir.SplitNode; //导入依赖的package包/类
@Override
public boolean enterSplitNode(final SplitNode splitNode) {
splitNode.toString(sb, printTypes);
sb.append(EOLN);
indent += TABWIDTH;
indent();
return true;
}
示例2: leaveSplitNode
import jdk.nashorn.internal.ir.SplitNode; //导入依赖的package包/类
@Override
public Node leaveSplitNode(final SplitNode splitNode) {
sb.append("</split>");
sb.append(EOLN);
indent -= TABWIDTH;
indent();
return splitNode;
}
示例3: createBlockSplitNode
import jdk.nashorn.internal.ir.SplitNode; //导入依赖的package包/类
/**
* Create a new split node from statements contained in a parent block.
*
* @param parent Parent block.
* @param statements Statements to include.
*
* @return New split node.
*/
private SplitNode createBlockSplitNode(final Block parent, final FunctionNode function, final List<Statement> statements, final long weight) {
final long token = parent.getToken();
final int finish = parent.getFinish();
final String name = function.uniqueName(SPLIT_PREFIX.symbolName());
final Block newBlock = new Block(token, finish, statements);
return new SplitNode(name, newBlock, compiler.findUnit(weight + WeighNodes.FUNCTION_WEIGHT));
}
示例4: leaveJumpNode
import jdk.nashorn.internal.ir.SplitNode; //导入依赖的package包/类
private JumpStatement leaveJumpNode(final JumpStatement jump) {
if (inSplitNode()) {
final SplitState splitState = getCurrentSplitState();
final SplitNode splitNode = splitState.splitNode;
if (lc.isExternalTarget(splitNode, jump.getTarget(lc))) {
appendSplitReturn(splitState.getSplitStateIndex(jump), jump.getLineNumber());
return jump;
}
}
appendStatement(jump);
return jump;
}
示例5: enterSplitNode
import jdk.nashorn.internal.ir.SplitNode; //导入依赖的package包/类
@Override
public boolean enterSplitNode(final SplitNode splitNode) {
splitNode.toString(sb);
sb.append(EOLN);
indent += TABWIDTH;
indent();
return true;
}
示例6: enterSplitNode
import jdk.nashorn.internal.ir.SplitNode; //导入依赖的package包/类
@Override
public boolean enterSplitNode(final SplitNode splitNode) {
return false;
}
示例7: enterSplitNode
import jdk.nashorn.internal.ir.SplitNode; //导入依赖的package包/类
@Override
public boolean enterSplitNode(final SplitNode splitNode) {
getCurrentFunctionState().splitDepth++;
splitStates.push(new SplitState(splitNode));
return true;
}
示例8: SplitState
import jdk.nashorn.internal.ir.SplitNode; //导入依赖的package包/类
SplitState(final SplitNode splitNode) {
this.splitNode = splitNode;
}