Java源码示例:com.apple.internal.jobjc.generator.utils.Fp.Dispatcher
示例1
/**
* Merge a and b.
*/
public NType merge(NType a, NType b) throws MergeFailed{
if(a!=null && b==null) return a;
if(a==null && b!=null) return b;
if(a==null && b==null) return null;
if(a.equals(b)) return a;
try {
return Dispatcher.dispatch(getClass(), this, "accept", a, b);
} catch (NoSuchMethodException e) {
throw new MergeFailed("a and b are of different NType", a, b);
}
}
示例2
public String print(NType nt){
try {
return Dispatcher.dispatch(getClass(), this, "accept", nt);
} catch (NoSuchMethodException e) {
throw new RuntimeException(e);
}
}
示例3
public JType getJTypeFor(final Type type){
return cache.get(type, new Map0<JType>(){
public JType apply() {
try {
return Dispatcher.dispatch(TypeToJType.this.getClass(), TypeToJType.this, "accept", type, type.type32, type.type64);
} catch (NoSuchMethodException e) {
return new JUnknown(type);
}
}});
}
示例4
/**
* Merge a and b.
*/
public NType merge(NType a, NType b) throws MergeFailed{
if(a!=null && b==null) return a;
if(a==null && b!=null) return b;
if(a==null && b==null) return null;
if(a.equals(b)) return a;
try {
return Dispatcher.dispatch(getClass(), this, "accept", a, b);
} catch (NoSuchMethodException e) {
throw new MergeFailed("a and b are of different NType", a, b);
}
}
示例5
public String print(NType nt){
try {
return Dispatcher.dispatch(getClass(), this, "accept", nt);
} catch (NoSuchMethodException e) {
throw new RuntimeException(e);
}
}
示例6
public JType getJTypeFor(final Type type){
return cache.get(type, new Map0<JType>(){
public JType apply() {
try {
return Dispatcher.dispatch(TypeToJType.this.getClass(), TypeToJType.this, "accept", type, type.type32, type.type64);
} catch (NoSuchMethodException e) {
return new JUnknown(type);
}
}});
}
示例7
/**
* Merge a and b.
*/
public NType merge(NType a, NType b) throws MergeFailed{
if(a!=null && b==null) return a;
if(a==null && b!=null) return b;
if(a==null && b==null) return null;
if(a.equals(b)) return a;
try {
return Dispatcher.dispatch(getClass(), this, "accept", a, b);
} catch (NoSuchMethodException e) {
throw new MergeFailed("a and b are of different NType", a, b);
}
}
示例8
public String print(NType nt){
try {
return Dispatcher.dispatch(getClass(), this, "accept", nt);
} catch (NoSuchMethodException e) {
throw new RuntimeException(e);
}
}
示例9
public JType getJTypeFor(final Type type){
return cache.get(type, new Map0<JType>(){
public JType apply() {
try {
return Dispatcher.dispatch(TypeToJType.this.getClass(), TypeToJType.this, "accept", type, type.type32, type.type64);
} catch (NoSuchMethodException e) {
return new JUnknown(type);
}
}});
}
示例10
/**
* Merge a and b.
*/
public NType merge(NType a, NType b) throws MergeFailed{
if(a!=null && b==null) return a;
if(a==null && b!=null) return b;
if(a==null && b==null) return null;
if(a.equals(b)) return a;
try {
return Dispatcher.dispatch(getClass(), this, "accept", a, b);
} catch (NoSuchMethodException e) {
throw new MergeFailed("a and b are of different NType", a, b);
}
}
示例11
public String print(NType nt){
try {
return Dispatcher.dispatch(getClass(), this, "accept", nt);
} catch (NoSuchMethodException e) {
throw new RuntimeException(e);
}
}
示例12
public JType getJTypeFor(final Type type){
return cache.get(type, new Map0<JType>(){
public JType apply() {
try {
return Dispatcher.dispatch(TypeToJType.this.getClass(), TypeToJType.this, "accept", type, type.type32, type.type64);
} catch (NoSuchMethodException e) {
return new JUnknown(type);
}
}});
}
示例13
/**
* Merge a and b.
*/
public NType merge(NType a, NType b) throws MergeFailed{
if(a!=null && b==null) return a;
if(a==null && b!=null) return b;
if(a==null && b==null) return null;
if(a.equals(b)) return a;
try {
return Dispatcher.dispatch(getClass(), this, "accept", a, b);
} catch (NoSuchMethodException e) {
throw new MergeFailed("a and b are of different NType", a, b);
}
}
示例14
public String print(NType nt){
try {
return Dispatcher.dispatch(getClass(), this, "accept", nt);
} catch (NoSuchMethodException e) {
throw new RuntimeException(e);
}
}
示例15
public JType getJTypeFor(final Type type){
return cache.get(type, new Map0<JType>(){
public JType apply() {
try {
return Dispatcher.dispatch(TypeToJType.this.getClass(), TypeToJType.this, "accept", type, type.type32, type.type64);
} catch (NoSuchMethodException e) {
return new JUnknown(type);
}
}});
}
示例16
/**
* Merge a and b.
*/
public NType merge(NType a, NType b) throws MergeFailed{
if(a!=null && b==null) return a;
if(a==null && b!=null) return b;
if(a==null && b==null) return null;
if(a.equals(b)) return a;
try {
return Dispatcher.dispatch(getClass(), this, "accept", a, b);
} catch (NoSuchMethodException e) {
throw new MergeFailed("a and b are of different NType", a, b);
}
}
示例17
public String print(NType nt){
try {
return Dispatcher.dispatch(getClass(), this, "accept", nt);
} catch (NoSuchMethodException e) {
throw new RuntimeException(e);
}
}
示例18
public JType getJTypeFor(final Type type){
return cache.get(type, new Map0<JType>(){
public JType apply() {
try {
return Dispatcher.dispatch(TypeToJType.this.getClass(), TypeToJType.this, "accept", type, type.type32, type.type64);
} catch (NoSuchMethodException e) {
return new JUnknown(type);
}
}});
}
示例19
/**
* Merge a and b.
*/
public NType merge(NType a, NType b) throws MergeFailed{
if(a!=null && b==null) return a;
if(a==null && b!=null) return b;
if(a==null && b==null) return null;
if(a.equals(b)) return a;
try {
return Dispatcher.dispatch(getClass(), this, "accept", a, b);
} catch (NoSuchMethodException e) {
throw new MergeFailed("a and b are of different NType", a, b);
}
}
示例20
public String print(NType nt){
try {
return Dispatcher.dispatch(getClass(), this, "accept", nt);
} catch (NoSuchMethodException e) {
throw new RuntimeException(e);
}
}
示例21
public JType getJTypeFor(final Type type){
return cache.get(type, new Map0<JType>(){
public JType apply() {
try {
return Dispatcher.dispatch(TypeToJType.this.getClass(), TypeToJType.this, "accept", type, type.type32, type.type64);
} catch (NoSuchMethodException e) {
return new JUnknown(type);
}
}});
}
示例22
/**
* Merge a and b.
*/
public NType merge(NType a, NType b) throws MergeFailed{
if(a!=null && b==null) return a;
if(a==null && b!=null) return b;
if(a==null && b==null) return null;
if(a.equals(b)) return a;
try {
return Dispatcher.dispatch(getClass(), this, "accept", a, b);
} catch (NoSuchMethodException e) {
throw new MergeFailed("a and b are of different NType", a, b);
}
}
示例23
public String print(NType nt){
try {
return Dispatcher.dispatch(getClass(), this, "accept", nt);
} catch (NoSuchMethodException e) {
throw new RuntimeException(e);
}
}
示例24
public JType getJTypeFor(final Type type){
return cache.get(type, new Map0<JType>(){
public JType apply() {
try {
return Dispatcher.dispatch(TypeToJType.this.getClass(), TypeToJType.this, "accept", type, type.type32, type.type64);
} catch (NoSuchMethodException e) {
return new JUnknown(type);
}
}});
}
示例25
/**
* Merge a and b.
*/
public NType merge(NType a, NType b) throws MergeFailed{
if(a!=null && b==null) return a;
if(a==null && b!=null) return b;
if(a==null && b==null) return null;
if(a.equals(b)) return a;
try {
return Dispatcher.dispatch(getClass(), this, "accept", a, b);
} catch (NoSuchMethodException e) {
throw new MergeFailed("a and b are of different NType", a, b);
}
}
示例26
public String print(NType nt){
try {
return Dispatcher.dispatch(getClass(), this, "accept", nt);
} catch (NoSuchMethodException e) {
throw new RuntimeException(e);
}
}
示例27
public JType getJTypeFor(final Type type){
return cache.get(type, new Map0<JType>(){
public JType apply() {
try {
return Dispatcher.dispatch(TypeToJType.this.getClass(), TypeToJType.this, "accept", type, type.type32, type.type64);
} catch (NoSuchMethodException e) {
return new JUnknown(type);
}
}});
}
示例28
/**
* Merge a and b.
*/
public NType merge(NType a, NType b) throws MergeFailed{
if(a!=null && b==null) return a;
if(a==null && b!=null) return b;
if(a==null && b==null) return null;
if(a.equals(b)) return a;
try {
return Dispatcher.dispatch(getClass(), this, "accept", a, b);
} catch (NoSuchMethodException e) {
throw new MergeFailed("a and b are of different NType", a, b);
}
}
示例29
public String print(NType nt){
try {
return Dispatcher.dispatch(getClass(), this, "accept", nt);
} catch (NoSuchMethodException e) {
throw new RuntimeException(e);
}
}
示例30
public JType getJTypeFor(final Type type){
return cache.get(type, new Map0<JType>(){
public JType apply() {
try {
return Dispatcher.dispatch(TypeToJType.this.getClass(), TypeToJType.this, "accept", type, type.type32, type.type64);
} catch (NoSuchMethodException e) {
return new JUnknown(type);
}
}});
}