Java Code Examples for com.sun.tools.javac.tree.JCTree.JCMemberReference.ReferenceKind#UNBOUND
The following examples show how to use
com.sun.tools.javac.tree.JCTree.JCMemberReference.ReferenceKind#UNBOUND .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LambdaToMethod.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Erasure destroys the implementation parameter subtype * relationship for intersection types */ boolean interfaceParameterIsIntersectionType() { List<Type> tl = tree.getDescriptorType(types).getParameterTypes(); if (tree.kind == ReferenceKind.UNBOUND) { tl = tl.tail; } for (; tl.nonEmpty(); tl = tl.tail) { Type pt = tl.head; if (pt.getKind() == TypeKind.TYPEVAR) { TypeVar tv = (TypeVar) pt; if (tv.bound.getKind() == TypeKind.INTERSECTION) { return true; } } } return false; }
Example 2
Source File: LambdaToMethod.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Erasure destroys the implementation parameter subtype * relationship for intersection types */ boolean interfaceParameterIsIntersectionType() { List<Type> tl = tree.getDescriptorType(types).getParameterTypes(); if (tree.kind == ReferenceKind.UNBOUND) { tl = tl.tail; } for (; tl.nonEmpty(); tl = tl.tail) { Type pt = tl.head; if (pt.getKind() == TypeKind.TYPEVAR) { TypeVar tv = (TypeVar) pt; if (tv.bound.getKind() == TypeKind.INTERSECTION) { return true; } } } return false; }
Example 3
Source File: LambdaToMethod.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Erasure destroys the implementation parameter subtype * relationship for intersection types */ boolean interfaceParameterIsIntersectionType() { List<Type> tl = tree.getDescriptorType(types).getParameterTypes(); if (tree.kind == ReferenceKind.UNBOUND) { tl = tl.tail; } for (; tl.nonEmpty(); tl = tl.tail) { Type pt = tl.head; if (pt.getKind() == TypeKind.TYPEVAR) { TypeVar tv = (TypeVar) pt; if (tv.bound.getKind() == TypeKind.INTERSECTION) { return true; } } } return false; }
Example 4
Source File: LambdaToMethod.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Erasure destroys the implementation parameter subtype * relationship for intersection types */ boolean interfaceParameterIsIntersectionType() { List<Type> tl = tree.getDescriptorType(types).getParameterTypes(); if (tree.kind == ReferenceKind.UNBOUND) { tl = tl.tail; } for (; tl.nonEmpty(); tl = tl.tail) { Type pt = tl.head; if (pt.getKind() == TypeKind.TYPEVAR) { TypeVar tv = (TypeVar) pt; if (tv.bound.getKind() == TypeKind.INTERSECTION) { return true; } } } return false; }
Example 5
Source File: LambdaToMethod.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Erasure destroys the implementation parameter subtype * relationship for intersection types */ boolean interfaceParameterIsIntersectionType() { List<Type> tl = tree.getDescriptorType(types).getParameterTypes(); if (tree.kind == ReferenceKind.UNBOUND) { tl = tl.tail; } for (; tl.nonEmpty(); tl = tl.tail) { Type pt = tl.head; if (pt.getKind() == TypeKind.TYPEVAR) { TypeVar tv = (TypeVar) pt; if (tv.bound.getKind() == TypeKind.INTERSECTION) { return true; } } } return false; }
Example 6
Source File: TransTypes.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 5 votes |
public void visitReference(JCMemberReference tree) { Type t = types.skipTypeVars(tree.expr.type, false); Type receiverTarget = t.isCompound() ? erasure(tree.sym.owner.type) : erasure(t); if (tree.kind == ReferenceKind.UNBOUND) { tree.expr = make.Type(receiverTarget); } else { tree.expr = translate(tree.expr, receiverTarget); } tree.type = erasure(tree.type); if (tree.varargsElement != null) tree.varargsElement = erasure(tree.varargsElement); result = tree; }
Example 7
Source File: TransTypes.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void visitReference(JCMemberReference tree) { Type t = types.skipTypeVars(tree.expr.type, false); Type receiverTarget = t.isCompound() ? erasure(tree.sym.owner.type) : erasure(t); if (tree.kind == ReferenceKind.UNBOUND) { tree.expr = make.Type(receiverTarget); } else { tree.expr = translate(tree.expr, receiverTarget); } tree.type = erasure(tree.type); if (tree.varargsElement != null) tree.varargsElement = erasure(tree.varargsElement); result = tree; }
Example 8
Source File: Resolve.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@Override ReferenceKind referenceKind(Symbol sym) { return ReferenceKind.UNBOUND; }
Example 9
Source File: Resolve.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
@Override ReferenceKind referenceKind(Symbol sym) { return ReferenceKind.UNBOUND; }
Example 10
Source File: Resolve.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
@Override ReferenceKind referenceKind(Symbol sym) { return ReferenceKind.UNBOUND; }
Example 11
Source File: Resolve.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
@Override ReferenceKind referenceKind(Symbol sym) { return ReferenceKind.UNBOUND; }
Example 12
Source File: Resolve.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Override ReferenceKind referenceKind(Symbol sym) { return ReferenceKind.UNBOUND; }
Example 13
Source File: Resolve.java From hottub with GNU General Public License v2.0 | 4 votes |
@Override ReferenceKind referenceKind(Symbol sym) { return ReferenceKind.UNBOUND; }
Example 14
Source File: Resolve.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
@Override ReferenceKind referenceKind(Symbol sym) { return ReferenceKind.UNBOUND; }
Example 15
Source File: Resolve.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
@Override ReferenceKind referenceKind(Symbol sym) { return ReferenceKind.UNBOUND; }