org.codehaus.groovy.syntax.Token.asReduction()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(108)

本文整理了Java中org.codehaus.groovy.syntax.Token.asReduction()方法的一些代码示例,展示了Token.asReduction()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Token.asReduction()方法的具体详情如下:
包路径:org.codehaus.groovy.syntax.Token
类名称:Token
方法名:asReduction

Token.asReduction介绍

[英]Creates a Reduction from this token. Returns self if the node is already a Reduction.
[中]从此令牌创建一个Reduction。如果节点已经是Reduction,则返回self。

代码示例

代码示例来源:origin: org.codehaus.groovy/groovy

/**
*  Creates a <code>Reduction</code> from this token, adding the supplied
*  nodes as the second and third element, respectively.
*/
public Reduction asReduction( CSTNode second, CSTNode third )
{
  Reduction created = asReduction( second );
  created.add( third );
  return created;
}

代码示例来源:origin: org.codehaus.groovy/groovy

/**
*  Creates a <code>Reduction</code> from this token, adding the supplied
*  node as the second element.
*/
public Reduction asReduction( CSTNode second )
{
  Reduction created = asReduction();
  created.add( second );
  return created;
}

代码示例来源:origin: org.codehaus.groovy/groovy

/**
*  Creates a <code>Reduction</code> from this token, adding the supplied
*  nodes as the second, third, and fourth element, respectively.
*/
public Reduction asReduction( CSTNode second, CSTNode third, CSTNode fourth )
{
  Reduction created = asReduction( second, third );
  created.add( fourth );
  return created;
}

代码示例来源:origin: org.codehaus.groovy/groovy-jdk14

/**
*  Creates a <code>Reduction</code> from this token, adding the supplied
*  nodes as the second and third element, respectively.
*/
public Reduction asReduction( CSTNode second, CSTNode third )
{
  Reduction created = asReduction( second );
  created.add( third );
  return created;
}

代码示例来源:origin: org.codehaus.groovy/groovy-jdk14

/**
*  Creates a <code>Reduction</code> from this token, adding the supplied
*  node as the second element.
*/
public Reduction asReduction( CSTNode second )
{
  Reduction created = asReduction();
  created.add( second );
  return created;
}

代码示例来源:origin: org.codehaus.groovy/groovy-jdk14

/**
*  Creates a <code>Reduction</code> from this token, adding the supplied
*  nodes as the second, third, and fourth element, respectively.
*/
public Reduction asReduction( CSTNode second, CSTNode third, CSTNode fourth )
{
  Reduction created = asReduction( second, third );
  created.add( fourth );
  return created;
}

代码示例来源:origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

/**
*  Creates a <code>Reduction</code> from this token, adding the supplied
*  node as the second element.
*/
public Reduction asReduction( CSTNode second )
{
  Reduction created = asReduction();
  created.add( second );
  return created;
}

代码示例来源:origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

/**
*  Creates a <code>Reduction</code> from this token, adding the supplied
*  nodes as the second and third element, respectively.
*/
public Reduction asReduction( CSTNode second, CSTNode third )
{
  Reduction created = asReduction( second );
  created.add( third );
  return created;
}

代码示例来源:origin: org.kohsuke.droovy/groovy

/**
*  Creates a <code>Reduction</code> from this token, adding the supplied
*  nodes as the second and third element, respectively.
*/
public Reduction asReduction( CSTNode second, CSTNode third )
{
  Reduction created = asReduction( second );
  created.add( third );
  return created;
}

代码示例来源:origin: org.codehaus.groovy/groovy-all-minimal

/**
*  Creates a <code>Reduction</code> from this token, adding the supplied
*  node as the second element.
*/
public Reduction asReduction( CSTNode second )
{
  Reduction created = asReduction();
  created.add( second );
  return created;
}

代码示例来源:origin: org.kohsuke.droovy/groovy

/**
*  Creates a <code>Reduction</code> from this token, adding the supplied
*  nodes as the second, third, and fourth element, respectively.
*/
public Reduction asReduction( CSTNode second, CSTNode third, CSTNode fourth )
{
  Reduction created = asReduction( second, third );
  created.add( fourth );
  return created;
}

代码示例来源:origin: org.codehaus.groovy/groovy-all-minimal

/**
*  Creates a <code>Reduction</code> from this token, adding the supplied
*  nodes as the second and third element, respectively.
*/
public Reduction asReduction( CSTNode second, CSTNode third )
{
  Reduction created = asReduction( second );
  created.add( third );
  return created;
}

代码示例来源:origin: org.codehaus.groovy/groovy-all-minimal

/**
*  Creates a <code>Reduction</code> from this token, adding the supplied
*  nodes as the second, third, and fourth element, respectively.
*/
public Reduction asReduction( CSTNode second, CSTNode third, CSTNode fourth )
{
  Reduction created = asReduction( second, third );
  created.add( fourth );
  return created;
}

代码示例来源:origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

/**
*  Creates a <code>Reduction</code> from this token, adding the supplied
*  nodes as the second, third, and fourth element, respectively.
*/
public Reduction asReduction( CSTNode second, CSTNode third, CSTNode fourth )
{
  Reduction created = asReduction( second, third );
  created.add( fourth );
  return created;
}

代码示例来源:origin: org.kohsuke.droovy/groovy

/**
*  Creates a <code>Reduction</code> from this token, adding the supplied
*  node as the second element.
*/
public Reduction asReduction( CSTNode second )
{
  Reduction created = asReduction();
  created.add( second );
  return created;
}

相关文章