javax.lang.model.util.Types.contains()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(119)

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

Types.contains介绍

[英]Tests whether one type argument contains another.
[中]测试一个类型参数是否包含另一个类型参数。

代码示例

代码示例来源:origin: org.vesalainen.bcc/bcc

public static boolean contains(TypeMirror t1, TypeMirror t2)
{
  return types.contains(t1, t2);
}

代码示例来源:origin: org.uberfire/uberfire-workbench-processors

@Override
public boolean contains(TypeMirror arg0,
            TypeMirror arg1) {
  return realImpl.contains(arg0,
               arg1);
}

代码示例来源:origin: sk.seges.sesam/sesam-annotation-core-support

@Override
public boolean contains(TypeMirror t1, TypeMirror t2) {
  return this.types.contains(t1, t2);
}

代码示例来源:origin: com.google.dagger/dagger-compiler

@Override
public boolean contains(TypeMirror t1, TypeMirror t2) {
 return types.contains(t1, t2);
}

代码示例来源:origin: kiegroup/appformer

@Override
public boolean contains(TypeMirror arg0,
            TypeMirror arg1) {
  return realImpl.contains(arg0,
               arg1);
}

代码示例来源:origin: org.mapstruct/mapstruct-processor

@Override
public boolean contains(TypeMirror t1, TypeMirror t2) {
  return delegate.contains( t1, t2 );
}

代码示例来源:origin: domaframework/doma

public boolean contains(TypeMirror t1, TypeMirror t2) {
 return typeUtils.contains(t1, t2);
}

代码示例来源:origin: juzu/juzu

public boolean contains(TypeMirror t1, TypeMirror t2) {
 return env.getTypeUtils().contains(t1, t2);
}

代码示例来源:origin: org.juzu/juzu-core

public boolean contains(TypeMirror t1, TypeMirror t2) {
 return env.getTypeUtils().contains(t1, t2);
}

代码示例来源:origin: stoicflame/enunciate

public boolean contains(TypeMirror t1, TypeMirror t2) {
 while (t1 instanceof DecoratedTypeMirror) {
  t1 = ((DecoratedTypeMirror) t1).getDelegate();
 }
 while (t2 instanceof DecoratedTypeMirror) {
  t2 = ((DecoratedTypeMirror) t2).getDelegate();
 }
 return delegate.contains(t1, t2);
}

代码示例来源:origin: com.webcohesion.enunciate/enunciate-javac-support

public boolean contains(TypeMirror t1, TypeMirror t2) {
 while (t1 instanceof DecoratedTypeMirror) {
  t1 = ((DecoratedTypeMirror) t1).getDelegate();
 }
 while (t2 instanceof DecoratedTypeMirror) {
  t2 = ((DecoratedTypeMirror) t2).getDelegate();
 }
 return delegate.contains(t1, t2);
}

相关文章