本文整理了Java中com.sun.codemodel.JClass.isInterface()
方法的一些代码示例,展示了JClass.isInterface()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JClass.isInterface()
方法的具体详情如下:
包路径:com.sun.codemodel.JClass
类名称:JClass
方法名:isInterface
[英]Checks if this object represents an interface.
[中]检查此对象是否表示接口。
代码示例来源:origin: com.unquietcode.tools.jcodemodel/codemodel
public boolean isInterface() {
return basis.isInterface();
}
代码示例来源:origin: javaee/jaxb-v2
public boolean isInterface() {
return basis.isInterface();
}
代码示例来源:origin: com.sun.codemodel/codemodel
public boolean isInterface() {
return basis.isInterface();
}
代码示例来源:origin: org.glassfish.metro/webservices-tools
public boolean isInterface() {
return basis.isInterface();
}
代码示例来源:origin: sun-jaxb/jaxb-xjc
public boolean isInterface() {
return basis.isInterface();
}
代码示例来源:origin: com.sun.codemodel/codemodel
/**
* This class extends the specifed class.
*
* @param superClass
* Superclass for this class
*
* @return This class
*/
public JDefinedClass _extends(JClass superClass) {
if (this.classType==ClassType.INTERFACE)
if(superClass.isInterface()){
return this._implements(superClass);
} else throw new IllegalArgumentException("unable to set the super class for an interface");
if (superClass == null)
throw new NullPointerException();
for( JClass o=superClass.outer(); o!=null; o=o.outer() ){
if(this==o){
throw new IllegalArgumentException("Illegal class inheritance loop." +
" Outer class " + this.name + " may not subclass from inner class: " + o.name());
}
}
this.superClass = superClass;
return this;
}
代码示例来源:origin: org.glassfish.metro/webservices-tools
/**
* This class extends the specifed class.
*
* @param superClass
* Superclass for this class
*
* @return This class
*/
public JDefinedClass _extends(JClass superClass) {
if (this.classType==ClassType.INTERFACE)
if(superClass.isInterface()){
return this._implements(superClass);
} else throw new IllegalArgumentException("unable to set the super class for an interface");
if (superClass == null)
throw new NullPointerException();
for( JClass o=superClass.outer(); o!=null; o=o.outer() ){
if(this==o){
throw new IllegalArgumentException("Illegal class inheritance loop." +
" Outer class " + this.name + " may not subclass from inner class: " + o.name());
}
}
this.superClass = superClass;
return this;
}
代码示例来源:origin: com.unquietcode.tools.jcodemodel/codemodel
/**
* This class extends the specifed class.
*
* @param superClass
* Superclass for this class
*
* @return This class
*/
public JDefinedClass _extends(JClass superClass) {
if (this.classType==ClassType.INTERFACE)
if(superClass.isInterface()){
return this._implements(superClass);
} else throw new IllegalArgumentException("unable to set the super class for an interface");
if (superClass == null)
throw new NullPointerException();
for( JClass o=superClass.outer(); o!=null; o=o.outer() ){
if(this==o){
throw new IllegalArgumentException("Illegal class inheritance loop." +
" Outer class " + this.name + " may not subclass from inner class: " + o.name());
}
}
this.superClass = superClass;
return this;
}
代码示例来源:origin: javaee/jaxb-v2
/**
* This class extends the specifed class.
*
* @param superClass
* Superclass for this class
*
* @return This class
*/
public JDefinedClass _extends(JClass superClass) {
if (this.classType==ClassType.INTERFACE)
if(superClass.isInterface()){
return this._implements(superClass);
} else throw new IllegalArgumentException("unable to set the super class for an interface");
if (superClass == null)
throw new NullPointerException();
for( JClass o=superClass.outer(); o!=null; o=o.outer() ){
if(this==o){
throw new IllegalArgumentException("Illegal class inheritance loop." +
" Outer class " + this.name + " may not subclass from inner class: " + o.name());
}
}
this.superClass = superClass;
return this;
}
代码示例来源:origin: com.sun.codemodel/codemodel
return true;
if( this.isInterface() ) {
Iterator<JClass> itfs = derived._implements();
while( itfs.hasNext() )
代码示例来源:origin: javaee/jaxb-v2
return true;
if( this.isInterface() ) {
Iterator<JClass> itfs = derived._implements();
while( itfs.hasNext() )
代码示例来源:origin: org.glassfish.metro/webservices-tools
return true;
if( this.isInterface() ) {
Iterator<JClass> itfs = derived._implements();
while( itfs.hasNext() )
代码示例来源:origin: sun-jaxb/jaxb-xjc
return true;
if( this.isInterface() ) {
Iterator itfs = derived._implements();
while( itfs.hasNext() )
代码示例来源:origin: com.unquietcode.tools.jcodemodel/codemodel
return true;
if( this.isInterface() ) {
Iterator<JClass> itfs = derived._implements();
while( itfs.hasNext() )
内容来源于网络,如有侵权,请联系作者删除!