public final class Descriptor extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Descriptor |
findOrCreate(ImmutableByteArray b) |
static Descriptor |
findOrCreate(Language l,
ImmutableByteArray b) |
static Descriptor |
findOrCreate(TypeName[] parameters,
TypeName returnType) |
static Descriptor |
findOrCreateUTF8(Language l,
String s) |
static Descriptor |
findOrCreateUTF8(String s) |
int |
getNumberOfParameters() |
TypeName[] |
getParameters() |
TypeName |
getReturnType() |
int |
hashCode() |
String |
toString() |
String |
toUnicodeString() |
public static Descriptor findOrCreate(TypeName[] parameters, TypeName returnType)
parameters - the parameters for a descriptorreturnType - the return typepublic static Descriptor findOrCreate(Language l, ImmutableByteArray b) throws IllegalArgumentException
b - a byte array holding the string representation of this descriptorIllegalArgumentExceptionpublic static Descriptor findOrCreate(ImmutableByteArray b) throws IllegalArgumentException
IllegalArgumentExceptionpublic static Descriptor findOrCreateUTF8(String s) throws IllegalArgumentException
s - string representation of this descriptorIllegalArgumentExceptionpublic static Descriptor findOrCreateUTF8(Language l, String s) throws IllegalArgumentException
s - string representation of this descriptorIllegalArgumentExceptionpublic String toUnicodeString()
public TypeName getReturnType()
public TypeName[] getParameters()
public int getNumberOfParameters()
Copyright © 2015. All rights reserved.