|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjml2b.util.Profiler
jml2b.structure.java.Identifier
class representing Java/Jml identifiers.
Field Summary | |
AClass |
cl
|
AField |
field
|
static int |
ID_CLASS
Identifiers representing a class |
static int |
ID_FIELD
Identifiers corresponding to fields. |
static int |
ID_METHOD
Identifiers corresponding to methods |
static int |
ID_PACKAGE
Identifiers representing a package: |
static int |
ID_UNKNOWN
Identifiers whose type is not known yet. |
int |
idType
|
AMethod |
mth
|
Package |
pkg
|
Constructor Summary | |
Identifier(AClass c)
Creates a class identifier for the given class. |
|
Identifier(AField f)
Creates a field identifier. |
|
Identifier(AMethod m)
Creates an identifier for the given method. |
|
Identifier(java.lang.String id)
Creates an identifier from unknown type with the given string. |
Method Summary | |
boolean |
equals(Identifier i)
Indicate wether this identifier is equal to the given one. |
java.lang.String |
getName()
|
LinkInfo |
linkFieldIdent(IJml2bConfiguration config,
LinkContext ctx,
ParsedItem ident_box)
|
java.lang.String |
toString()
|
Methods inherited from class jml2b.util.Profiler |
runGC |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int idType
public AClass cl
public AMethod mth
public Package pkg
public AField field
public static final int ID_UNKNOWN
public static final int ID_CLASS
public static final int ID_PACKAGE
public static final int ID_METHOD
public static final int ID_FIELD
Constructor Detail |
public Identifier(AField f)
f
- the field this identifier will refer to.public Identifier(AClass c)
c
- the class this identifier will refer to.public Identifier(AMethod m)
m
- the method this identifier refers to.public Identifier(java.lang.String id)
id
- the content of the identifier.Method Detail |
public java.lang.String getName()
public java.lang.String toString()
public boolean equals(Identifier i)
i
- the identifier to compare.
true
if and only if this identifier
is equal to i
.public LinkInfo linkFieldIdent(IJml2bConfiguration config, LinkContext ctx, ParsedItem ident_box) throws Jml2bException
ident_box
- the box that is used for reporting link errors.
Jml2bException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |