|
org.openide.src 1.8.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.src.MethodParameter
public final class MethodParameter
Describes an argument of a method.
Constructor Summary | |
---|---|
MethodParameter(String name,
Type type,
boolean fin)
Create new parameter. |
Method Summary | |
---|---|
boolean |
compareTo(MethodParameter param,
boolean onlyType,
boolean source)
Compare the specified MethodParameter with this for equality. |
boolean |
equals(Object o)
|
String |
getFullString()
|
String |
getName()
Get the name of the parameter variable. |
String |
getSourceString()
|
Type |
getType()
Get the parameter type. |
int |
hashCode()
|
boolean |
isFinal()
Test whether this parameter is final. |
static MethodParameter |
parse(String text)
Create a method parameter by parsing its textual representation. |
void |
setFinal(boolean fin)
Make this parameter final or not. |
void |
setName(String name)
Set the name of the parameter variable. |
void |
setType(Type type)
Set the parameter type. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MethodParameter(String name, Type type, boolean fin)
name
- the name of the parametertype
- the type of the parameterfin
- true
if this parameter is final
Method Detail |
---|
public static MethodParameter parse(String text) throws IllegalArgumentException
text
- the text to be parsed
IllegalArgumentException
- if the syntax is not recognizedpublic Type getType()
public void setType(Type type)
type
- the new typepublic String getName()
public void setName(String name)
name
- the new namepublic void setFinal(boolean fin)
fin
- true
to make it final, false
to make it unfinalpublic boolean isFinal()
true
if sopublic String getFullString()
public String getSourceString()
public String toString()
public boolean compareTo(MethodParameter param, boolean onlyType, boolean source)
param
- MethodParameter to be compared with thisonlyType
- Compares only the type (not name and final flag)source
- Determine if the source name (for class types)
should be also compared.
If false
only fully qualified name is compared.
true
if the specified object equals to
specified MethodParameter otherwise false
.public boolean equals(Object o)
public int hashCode()
|
org.openide.src 1.8.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |