|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.neu.ccs.jpf.JPFBase.MemberSignature
edu.neu.ccs.jpf.JPFBase.ParametrizedSignature
Encapsulates a parametrized member signature.
| Field Summary | |
protected int |
modifiers
Modifers for this member. |
protected String |
name
Name of this member. |
private ArrayList |
parameterNames
Names of parameters. |
private ArrayList |
parameters
Names of the types of parameters. |
| Constructor Summary | |
private |
JPFBase.ParametrizedSignature()
|
| Method Summary | |
protected void |
addModifier(String token)
Adds the modifier represented by the given keyword to the list of modifiers for this method. |
protected void |
addParameter(String type,
String name)
Adds an parameter to this object with the given name, whose type is named by the given String. |
protected String |
className(Class c)
Returns the unqualified name of the given class. |
protected abstract void |
fromString(String s)
Parses the given text signature and sets member data for this object accordingly. |
String[] |
getParameterNames()
Returns an array containing the names of the parameters. |
String[] |
getParameterTypes()
Returns an array containing the types of the parameters. |
protected boolean |
isModifier(String token)
Returns true if the given String
equals a method modifier keyword,
or false otherwise. |
protected String |
modifierString()
Returns a String representation
of the modifiers for this member. |
protected String |
parameterString()
Returns a String representation
of the parameters for this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private ArrayList parameters
private ArrayList parameterNames
protected int modifiers
protected String name
| Constructor Detail |
private JPFBase.ParametrizedSignature()
| Method Detail |
protected void addParameter(String type,
String name)
String.
type - name of the type of the parametername - name of the parameterpublic String[] getParameterTypes()
public String[] getParameterNames()
protected String parameterString()
String representation
of the parameters for this object.
protected abstract void fromString(String s)
throws JPTError
s - text signature to parse
JPTError - if the text signature is malformedprotected void addModifier(String token)
token - possible keyword for modifier to be addedprotected boolean isModifier(String token)
true if the given String
equals a method modifier keyword,
or false otherwise.
token - possible method modifier keywordprotected String className(Class c)
c - class from which to extract nameprotected String modifierString()
String representation
of the modifiers for this member.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||