本文整理了Java中org.codehaus.groovy.GroovyBugError
类的一些代码示例,展示了GroovyBugError
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GroovyBugError
类的具体详情如下:
包路径:org.codehaus.groovy.GroovyBugError
类名称:GroovyBugError
[英]This class represents an error that is thrown when a bug is recognized inside the runtime. Basically it is thrown when a constraint is not fullfilled that should be fullfiled.
[中]此类表示在运行时内识别错误时引发的错误。基本上,它是在约束未完全填充时抛出的,该约束应完全填充。
代码示例来源:origin: groovy/groovy-core
/**
* Will always throw a GroovyBugError
* @see java.io.OutputStream#write(int)
*/
public void write(int b) {
throw new GroovyBugError("Any write calls to this stream are invalid!");
}
}
代码示例来源:origin: org.codehaus.groovy/groovy
/**
* Returns a String representation of this class by calling <code>getMessage()</code>.
*
* @see #getMessage()
*/
public String toString() {
return getMessage();
}
代码示例来源:origin: org.codehaus.groovy/groovy
private void changeBugText(GroovyBugError e, SourceUnit context) {
e.setBugText("exception in phase '" + getPhaseDescription() + "' in source unit '" + ((context != null) ? context.getName() : "?") + "' " + e.getBugText());
}
代码示例来源:origin: org.codehaus.groovy/groovy-jdk14
private void changeBugText(GroovyBugError e, SourceUnit context) {
e.setBugText("exception in phase '" + getPhaseDescription() + "' in source unit '" + ((context != null) ? context.getName() : "?") + "' " + e.getBugText());
}
}
代码示例来源:origin: org.codehaus.groovy/groovy
/**
* returns the index of the bytecode variable
*/
public int getIndex() {
if (index == -1) throw new GroovyBugError("index requested before visit!");
return index;
}
代码示例来源:origin: org.kohsuke.droovy/groovy
private void changeBugText(GroovyBugError e, SourceUnit context) {
e.setBugText("exception in phase '" + getPhaseDescription() + "' in source unit '" + ((context != null) ? context.getName() : "?") + "' " + e.getBugText());
}
}
代码示例来源:origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm
/**
* Returns a String representation of this class by calling <code>getMessage()</code>.
* @see #getMessage()
*/
public String toString() {
return getMessage();
}
代码示例来源:origin: org.codehaus.groovy/groovy
@Override
protected boolean writeStdOperators(int type, boolean simulate) {
type = type - PLUS;
if (type < 0 || type > 5 || type == 3 /*DIV*/) return false;
if (simulate) return false;
throw new GroovyBugError("should not reach here");
}
代码示例来源:origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm
private void changeBugText(GroovyBugError e, SourceUnit context) {
e.setBugText("exception in phase '" + getPhaseDescription() + "' in source unit '" + ((context != null) ? context.getName() : "?") + "' " + e.getBugText());
}
代码示例来源:origin: org.codehaus.groovy/groovy-all-minimal
/**
* Returns a String representation of this class by calling <code>getMessage()</code>.
* @see #getMessage()
*/
public String toString() {
return getMessage();
}
代码示例来源:origin: org.codehaus.groovy/groovy
@Override
public Object invokeHandle(Object handle, Object[] args) throws Throwable {
throw new GroovyBugError("invokeHandle requires at least JDK 7");
}
}
代码示例来源:origin: org.codehaus.groovy/groovy-all-minimal
private void changeBugText(GroovyBugError e, SourceUnit context) {
e.setBugText("exception in phase '" + getPhaseDescription() + "' in source unit '" + ((context != null) ? context.getName() : "?") + "' " + e.getBugText());
}
}
代码示例来源:origin: org.kohsuke.droovy/groovy
/**
* Returns a String representation of this class by calling <code>getMessage()</code>.
* @see #getMessage()
*/
public String toString() {
return getMessage();
}
代码示例来源:origin: org.codehaus.groovy/groovy
/**
* Sets an element node in at the specified index. Returns the element
* for convenience. Not all nodes support this operation!
*/
public CSTNode set( int index, CSTNode element )
{
throw new GroovyBugError( "set() not supported for this CSTNode type" );
}
代码示例来源:origin: org.codehaus.groovy/groovy-jdk14
/**
* Returns a String representation of this class by calling <code>getMessage()</code>.
* @see #getMessage()
*/
public String toString() {
return getMessage();
}
代码示例来源:origin: org.codehaus.groovy/groovy
/**
* Adds an element to the node. Returns the element for convenience.
* Not all nodes support this operation!
*/
public CSTNode add( CSTNode element )
{
throw new GroovyBugError( "add() not supported for this CSTNode type" );
}
代码示例来源:origin: org.codehaus.groovy/groovy
public boolean write(int operation, boolean simulate) {
if (simulate) return false;
throw new GroovyBugError("should not reach here");
}
代码示例来源:origin: org.codehaus.groovy/groovy
/**
* Marks the node a complete expression. Not all nodes support
* this operation!
*/
public void markAsExpression()
{
throw new GroovyBugError( "markAsExpression() not supported for this CSTNode type" );
}
代码示例来源:origin: org.codehaus.groovy/groovy
/**
* Returns the specified element, or null.
*/
public CSTNode get( int index )
{
if( index > 0 )
{
throw new GroovyBugError( "attempt to access Token element other than root" );
}
return this;
}
代码示例来源:origin: org.codehaus.groovy/groovy
protected void writeMinusMinus(MethodVisitor mv) {
throw new GroovyBugError("should not reach here");
}
protected void doubleTwoOperands(MethodVisitor mv) {
内容来源于网络,如有侵权,请联系作者删除!