Home
last modified time | relevance | path

Searched refs:descriptor (Results 1 – 15 of 15) sorted by relevance

/libcore/ojluni/src/main/java/java/lang/constant/
DReferenceClassDescImpl.java39 private final String descriptor; field in ReferenceClassDescImpl
50 ReferenceClassDescImpl(String descriptor) { in ReferenceClassDescImpl() argument
51 requireNonNull(descriptor); in ReferenceClassDescImpl()
52 int len = ConstantUtils.skipOverFieldSignature(descriptor, 0, descriptor.length(), false); in ReferenceClassDescImpl()
54 || len != descriptor.length()) in ReferenceClassDescImpl()
55 …w IllegalArgumentException(String.format("not a valid reference type descriptor: %s", descriptor)); in ReferenceClassDescImpl()
56 this.descriptor = descriptor; in ReferenceClassDescImpl()
61 return descriptor; in descriptorString()
99 return descriptor.equals(constant.descriptorString()); in equals()
104 return descriptor.hashCode(); in hashCode()
DPrimitiveClassDescImpl.java40 private final String descriptor; field in PrimitiveClassDescImpl
52 PrimitiveClassDescImpl(String descriptor) { in PrimitiveClassDescImpl() argument
53 … super(ConstantDescs.BSM_PRIMITIVE_CLASS, requireNonNull(descriptor), ConstantDescs.CD_Class); in PrimitiveClassDescImpl()
54 if (descriptor.length() != 1 in PrimitiveClassDescImpl()
55 || "VIJCSBFDZ".indexOf(descriptor.charAt(0)) < 0) in PrimitiveClassDescImpl()
56 …w IllegalArgumentException(String.format("not a valid primitive type descriptor: %s", descriptor)); in PrimitiveClassDescImpl()
57 this.descriptor = descriptor; in PrimitiveClassDescImpl()
62 return descriptor; in descriptorString()
DConstantUtils.java120 static List<String> parseMethodDescriptor(String descriptor) { in parseMethodDescriptor() argument
121 int cur = 0, end = descriptor.length(); in parseMethodDescriptor()
124 if (cur >= end || descriptor.charAt(cur) != '(') in parseMethodDescriptor()
125 throw new IllegalArgumentException("Bad method descriptor: " + descriptor); in parseMethodDescriptor()
128 while (cur < end && descriptor.charAt(cur) != ')') { in parseMethodDescriptor()
129 int len = skipOverFieldSignature(descriptor, cur, end, false); in parseMethodDescriptor()
131 throw new IllegalArgumentException("Bad method descriptor: " + descriptor); in parseMethodDescriptor()
132 ptypes.add(descriptor.substring(cur, cur + len)); in parseMethodDescriptor()
136 throw new IllegalArgumentException("Bad method descriptor: " + descriptor); in parseMethodDescriptor()
139 int rLen = skipOverFieldSignature(descriptor, cur, end, true); in parseMethodDescriptor()
[all …]
DClassDesc.java129 static ClassDesc ofDescriptor(String descriptor) { in ofDescriptor() argument
130 requireNonNull(descriptor); in ofDescriptor()
131 if (descriptor.isEmpty()) { in ofDescriptor()
133 "not a valid reference type descriptor: " + descriptor); in ofDescriptor()
135 int depth = ConstantUtils.arrayDepth(descriptor); in ofDescriptor()
141 return (descriptor.length() == 1) in ofDescriptor()
142 ? new PrimitiveClassDescImpl(descriptor) in ofDescriptor()
143 : new ReferenceClassDescImpl(descriptor); in ofDescriptor()
DMethodTypeDesc.java53 static MethodTypeDesc ofDescriptor(String descriptor) { in ofDescriptor() argument
54 return MethodTypeDescImpl.ofDescriptor(descriptor); in ofDescriptor()
DMethodTypeDescImpl.java70 static MethodTypeDescImpl ofDescriptor(String descriptor) { in ofDescriptor() argument
71 requireNonNull(descriptor); in ofDescriptor()
72 List<String> types = ConstantUtils.parseMethodDescriptor(descriptor); in ofDescriptor()
/libcore/ojluni/src/main/java/java/io/
DFileDescriptor.java61 private int descriptor; field in FileDescriptor
85 descriptor = -1; in FileDescriptor()
89 this.descriptor = fd; in FileDescriptor()
127 return descriptor != -1; in valid()
177 return descriptor; in getInt$()
188 this.descriptor = fd; in setInt$()
248 result.descriptor = this.descriptor; in release$()
250 this.descriptor = -1; in release$()
263 return isSocket(descriptor); in isSocket$()
267 private static native boolean isSocket(int descriptor); in isSocket() argument
[all …]
DObjectInputStream.java1612 ObjectStreamClass descriptor; in readClassDesc() local
1615 descriptor = (ObjectStreamClass) readNull(); in readClassDesc()
1618 descriptor = (ObjectStreamClass) readHandle(unshared); in readClassDesc()
1621 descriptor = readProxyDesc(unshared); in readClassDesc()
1624 descriptor = readNonProxyDesc(unshared); in readClassDesc()
1634 return descriptor; in readClassDesc()
/libcore/ojluni/annotations/hiddenapi/java/io/
DFileDescriptor.java37 private FileDescriptor(int descriptor) { in FileDescriptor() argument
78 private static native boolean isSocket(int descriptor); in isSocket() argument
83 private int descriptor; field in FileDescriptor
/libcore/ojluni/src/test/java/lang/StackWalker/
DBasic.java91 String descriptor = f.getDescriptor(); in testMethodSignature() local
92 if (!descriptor.equals(type.toMethodDescriptorString())) { in testMethodSignature()
104 if (!descriptor.equals(f.getDescriptor())) { in testMethodSignature()
105 throw new RuntimeException("Mismatched: " + descriptor in testMethodSignature()
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodType.java1133 public static MethodType fromMethodDescriptorString(String descriptor, ClassLoader loader)
1136 if (!descriptor.startsWith("(") || // also generates NPE if needed
1137 descriptor.indexOf(')') < 0 ||
1138 descriptor.indexOf('.') >= 0)
1139 throw newIllegalArgumentException("not a method descriptor: "+descriptor);
1140 List<Class<?>> types = BytecodeDescriptor.parseMethod(descriptor, loader);
/libcore/ojluni/src/lambda/java/java/lang/invoke/
DMethodType.java97 public static MethodType fromMethodDescriptorString(String descriptor, ClassLoader loader) in fromMethodDescriptorString() argument
/libcore/ojluni/src/main/java/sun/nio/fs/
DLinuxWatchService.java117 int descriptor() { in descriptor() method in LinuxWatchService.LinuxWatchKey
292 wdToKey.remove(key.descriptor()); in implCancelKey()
/libcore/ojluni/annotations/sdk/nullability/java/lang/invoke/
DMethodType.annotated.java94 public static java.lang.invoke.MethodType fromMethodDescriptorString(java.lang.String descriptor, j… in fromMethodDescriptorString() argument
/libcore/
Dnullability_warnings.txt11 …ng.invoke.MethodType.fromMethodDescriptorString(String, ClassLoader), parameter descriptor, MISSING