public class MethodSignature extends Object implements TaggedPersistent, MethodSignatureInfo
| Modifier and Type | Field and Description |
|---|---|
String |
normSeqPrefix |
String |
normSeqSuffix |
| Constructor and Description |
|---|
MethodSignature(CloverToken firstToken,
CloverToken nameToken,
CloverToken lastToken,
Map<String,List<String>> tags,
Modifiers modifiers,
String name,
String typeParams,
String returnType,
Parameter[] parameters,
String[] throwsTypes) |
MethodSignature(CloverToken firstToken,
CloverToken nameToken,
CloverToken lastToken,
String name,
String typeParams,
String returnType,
Parameter[] parameters,
String[] throwsTypes) |
MethodSignature(String name) |
MethodSignature(String name,
long modifiers,
AnnotationImpl[] annotations) |
MethodSignature(String name,
String typeParams,
String returnType,
Parameter[] parameters,
String[] throwsTypes,
Modifiers modifiers) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Collection<Annotation>> |
getAnnotations() |
int |
getBaseModifiersMask()
Return only low 32 bits from the mask, ModifiersExt might not fit
|
Modifiers |
getModifiers() |
long |
getModifiersMask() |
String |
getName() |
String |
getNormalizedSignature() |
int |
getParamCount() |
Parameter[] |
getParameters()
Returns the parameter types for the method signature.
|
String |
getRenamedNormalisedSignature(String newName) |
String |
getReturnType() |
Map<String,List<String>> |
getTags() |
String[] |
getThrowsTypes() |
String |
getTypeParams() |
boolean |
hasParams() |
boolean |
hasThrowsTypes() |
String |
listParamIdents() |
String |
listParamTypes() |
static MethodSignature |
read(TaggedDataInput in) |
void |
setModifiers(long modifiers) |
void |
setName(String name) |
String |
toString() |
void |
write(TaggedDataOutput out) |
static void |
writeNull(DataOutput out) |
public transient String normSeqPrefix
public transient String normSeqSuffix
public MethodSignature(String name)
public MethodSignature(String name, long modifiers, AnnotationImpl[] annotations)
public MethodSignature(String name, String typeParams, String returnType, Parameter[] parameters, String[] throwsTypes, Modifiers modifiers)
public MethodSignature(CloverToken firstToken, CloverToken nameToken, CloverToken lastToken, String name, String typeParams, String returnType, Parameter[] parameters, String[] throwsTypes)
public MethodSignature(CloverToken firstToken, CloverToken nameToken, CloverToken lastToken, Map<String,List<String>> tags, Modifiers modifiers, String name, String typeParams, String returnType, Parameter[] parameters, String[] throwsTypes)
public long getModifiersMask()
public int getBaseModifiersMask()
public void setModifiers(long modifiers)
public Modifiers getModifiers()
getModifiers in interface MethodSignatureInfo@NotNull public Map<String,Collection<Annotation>> getAnnotations()
getAnnotations in interface MethodSignatureInfopublic String getName()
getName in interface MethodSignatureInfopublic String getReturnType()
getReturnType in interface MethodSignatureInfopublic String getTypeParams()
getTypeParams in interface MethodSignatureInfopublic Parameter[] getParameters()
getParameters in interface MethodSignatureInfopublic boolean hasParams()
hasParams in interface MethodSignatureInfopublic int getParamCount()
getParamCount in interface MethodSignatureInfopublic String listParamTypes()
public String listParamIdents()
public boolean hasThrowsTypes()
public String[] getThrowsTypes()
getThrowsTypes in interface MethodSignatureInfopublic void setName(String name)
public static void writeNull(DataOutput out) throws IOException
IOExceptionpublic void write(TaggedDataOutput out) throws IOException
write in interface TaggedPersistentIOExceptionpublic static MethodSignature read(TaggedDataInput in) throws IOException
IOExceptionpublic String getNormalizedSignature()
getNormalizedSignature in interface MethodSignatureInfoCopyright © 2024 OpenClover.org. All rights reserved.