本文整理了Java中com.sun.tools.javac.code.Types.adapt()
方法的一些代码示例,展示了Types.adapt()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Types.adapt()
方法的具体详情如下:
包路径:com.sun.tools.javac.code.Types
类名称:Types
方法名:adapt
[英]Adapt a type by computing a substitution which maps a source type to a target type.
[中]通过计算将源类型映射到目标类型的替换来调整类型。
代码示例来源:origin: konsoletyper/teavm-javac
private void adaptSelf(Type t,
ListBuffer<Type> from,
ListBuffer<Type> to) {
try {
//if (t.tsym.type != t)
adapt(t.tsym.type, t, from, to);
} catch (AdaptFailure ex) {
// Adapt should never fail calculating a mapping from
// t.tsym.type to t as there can be no merge problem.
throw new AssertionError(ex);
}
}
// </editor-fold>
代码示例来源:origin: org.jvnet.sorcerer/sorcerer-javac
switch (source.tag) {
case CLASS:
adapt(source.allparams(), target.allparams(),
from, to, mapping);
break;
代码示例来源:origin: org.jvnet.sorcerer/sorcerer-javac
private void adaptSelf(Type t,
ListBuffer<Type> from,
ListBuffer<Type> to) {
try {
//if (t.tsym.type != t)
adapt(t.tsym.type, t, from, to);
} catch (AdaptFailure ex) {
// Adapt should never fail calculating a mapping from
// t.tsym.type to t as there can be no merge problem.
throw new AssertionError(ex);
}
}
代码示例来源:origin: sc.fiji/javac
switch (source.tag) {
case CLASS:
adapt(source.allparams(), target.allparams(),
from, to, mapping);
break;
代码示例来源:origin: sc.fiji/javac
private void adaptSelf(Type t,
ListBuffer<Type> from,
ListBuffer<Type> to) {
try {
//if (t.tsym.type != t)
adapt(t.tsym.type, t, from, to);
} catch (AdaptFailure ex) {
// Adapt should never fail calculating a mapping from
// t.tsym.type to t as there can be no merge problem.
throw new AssertionError(ex);
}
}
代码示例来源:origin: org.kohsuke.sorcerer/sorcerer-javac
private void adaptSelf(Type t,
ListBuffer<Type> from,
ListBuffer<Type> to) {
try {
//if (t.tsym.type != t)
adapt(t.tsym.type, t, from, to);
} catch (AdaptFailure ex) {
// Adapt should never fail calculating a mapping from
// t.tsym.type to t as there can be no merge problem.
throw new AssertionError(ex);
}
}
// </editor-fold>
代码示例来源:origin: org.kohsuke.sorcerer/sorcerer-javac
ListBuffer<Type> to = new ListBuffer<Type>();
try {
adapt(base, t, from, to);
} catch (AdaptFailure ex) {
return null;
代码示例来源:origin: sc.fiji/javac
ListBuffer<Type> to = new ListBuffer<Type>();
try {
adapt(base, t, from, to);
} catch (AdaptFailure ex) {
return null;
代码示例来源:origin: org.jvnet.sorcerer/sorcerer-javac
ListBuffer<Type> to = new ListBuffer<Type>();
try {
adapt(base, t, from, to);
} catch (AdaptFailure ex) {
return null;
代码示例来源:origin: konsoletyper/teavm-javac
ListBuffer<Type> to = new ListBuffer<Type>();
try {
adapt(base, t, from, to);
} catch (AdaptFailure ex) {
return null;
内容来源于网络,如有侵权,请联系作者删除!