当前位置: 首页>>代码示例>>Java>>正文


Java SplitNode类代码示例

本文整理汇总了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;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:PrintVisitor.java

示例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;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:PrintVisitor.java

示例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));
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:Splitter.java

示例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;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:SplitIntoFunctions.java

示例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;
}
 
开发者ID:RedlineResearch,项目名称:OLD-OpenJDK8,代码行数:9,代码来源:PrintVisitor.java

示例6: enterSplitNode

import jdk.nashorn.internal.ir.SplitNode; //导入依赖的package包/类
@Override
public boolean enterSplitNode(final SplitNode splitNode) {
    return false;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:JSONWriter.java

示例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;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:7,代码来源:SplitIntoFunctions.java

示例8: SplitState

import jdk.nashorn.internal.ir.SplitNode; //导入依赖的package包/类
SplitState(final SplitNode splitNode) {
    this.splitNode = splitNode;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:SplitIntoFunctions.java


注:本文中的jdk.nashorn.internal.ir.SplitNode类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。