📄 methodnodeerrorinformation.java
字号:
/**
* Copyright (c) 2003-2005 Craig Setera
* All Rights Reserved.
* Licensed under the Eclipse Public License - v 1.0
* For more information see http://www.eclipse.org/legal/epl-v10.html
*/
package eclipseme.preverifier.internal.results;
import org.objectweb.asm.tree.MethodNode;
import eclipseme.preverifier.results.IClassErrorInformation;
import eclipseme.preverifier.results.IMethodErrorInformation;
/**
* Implementation of the IMethodErrorInformation interface
* wrapped around a method node.
* <p />
* Copyright (c) 2003-2005 Craig Setera<br>
* All Rights Reserved.<br>
* Licensed under the Eclipse Public License - v 1.0<p/>
* <br>
* $Revision: 1.1 $
* <br>
* $Date: 2005/09/25 23:53:32 $
* <br>
* @author Craig Setera
*/
public class MethodNodeErrorInformation implements IMethodErrorInformation {
private IClassErrorInformation classErrorInformation;
private MethodNode methodNode;
/**
* Construct a new instance of method node error information.
*
* @param classErrorInformation
* @param methodNode
*/
public MethodNodeErrorInformation(
IClassErrorInformation classErrorInformation,
MethodNode methodNode)
{
super();
this.classErrorInformation = classErrorInformation;
this.methodNode = methodNode;
}
/**
* @see eclipseme.preverifier.results.IMethodErrorInformation#getName()
*/
public String getName() {
return methodNode.name;
}
/**
* @see eclipseme.preverifier.results.IMethodErrorInformation#getTypeDescription()
*/
public String getTypeDescription() {
return methodNode.desc;
}
/**
* @see eclipseme.preverifier.results.IMethodErrorInformation#getClassInformation()
*/
public IClassErrorInformation getClassInformation() {
return classErrorInformation;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -