|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.Utils
org.multijava.util.compiler.Phylum
org.multijava.mjc.JPhylum
org.jmlspecs.checker.JmlNode
org.jmlspecs.checker.JmlMemberDeclaration
This type represents a java declaration in the syntax tree.
| Nested Class Summary |
| Nested classes inherited from class org.jmlspecs.checker.JmlNode |
JmlNode.DummyInitializerDeclaration |
| Field Summary | |
private JMemberDeclaration |
delegee
|
protected JmlMemberDeclaration |
refinedDecl
The declaration that is refined by this declaration. |
protected JmlMemberDeclaration |
refiningDecl
The declaration that refines this declaration. |
| Fields inherited from class org.jmlspecs.checker.JmlNode |
MJCVISIT_MESSAGE |
| Fields inherited from class org.multijava.mjc.JPhylum |
EMPTY |
| Fields inherited from class org.multijava.util.compiler.Phylum |
|
| Fields inherited from class org.multijava.util.Utils |
DBG_LEVEL_HIGH, DBG_LEVEL_LOW, DBG_LEVEL_NO |
| Constructor Summary | |
JmlMemberDeclaration(TokenReference where,
JMemberDeclaration delegee)
|
|
| Method Summary | |
void |
accept(MjcVisitor p)
Accepts the specified visitor |
void |
checkRefinedModifiers(CContextType context,
JmlMemberDeclaration member)
Makes the general modifier consistency checks between refined declarations that are required of all refining members. |
abstract void |
combineSpecifications()
Combine the specifications of this declaration with the specifications of the declarations it refines. |
String |
findJavaFileInRefinement()
|
void |
genComments(MjcVisitor p)
Generate the code in pure java form It is useful to debug and tune compilation process |
CClass |
getCClass()
|
JmlMethodSpecification |
getCombinedSpecification()
Returns null unless overridden by a subclass. |
JmlVarAssertion[] |
getCombinedVarAssertions()
Returns null unless overridden by a subclass. |
CField |
getField()
|
CMethod |
getMethod()
|
JmlMemberDeclaration |
getMostRefined()
|
JmlMemberDeclaration |
getRefinedMember()
|
JmlMemberDeclaration |
getRefiningMember()
|
boolean |
inBinaryClassFile()
Returns true if this member comes from a '.class' file. |
boolean |
inJavaFile()
Returns true if this member is declared in a '.java' file. |
ArrayList |
inners()
Returns null unless overridden by a subclass. |
boolean |
isDeprecated()
Returns true if this member is deprecated |
boolean |
isRefined()
|
boolean |
isRefiningMember()
|
JavadocComment |
javadocComment()
|
abstract JmlMemberAccess |
jmlAccess()
|
void |
setRefinedMember(JmlMemberDeclaration refinedDecl)
Sets the field referencing the declaration refined by this declaration. |
void |
setRefiningMember(JmlMemberDeclaration refiningDecl)
Sets the field referencing the declaration that refines this declaration. |
String |
stringRepresentation()
|
| Methods inherited from class org.jmlspecs.checker.JmlNode |
enterSpecScope, enterSpecScope, exitSpecScope, exitSpecScope, privacy, privacyString |
| Methods inherited from class org.multijava.mjc.JPhylum |
check, check, check, check, fail, fail, fail, warn, warn, warn, warn |
| Methods inherited from class org.multijava.util.compiler.Phylum |
getTokenReference, setTokenReference |
| Methods inherited from class org.multijava.util.Utils |
assertTrue, assertTrue, combineArrays, escapeString, escapeString, fail, fail, getFilePath, hasFlag, hasOtherFlags, parsePathParts, relativePathTo, splitQualifiedName, splitQualifiedName, stripJavaModifiers, stripNonJavaModifiers, stripPrivateModifier, unescapeString, vectorToArray, vectorToIntArray |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.multijava.mjc.JMemberDeclarationType |
ident, modifiers |
| Methods inherited from interface org.multijava.util.compiler.PhylumType |
getTokenReference, setTokenReference |
| Field Detail |
private JMemberDeclaration delegee
protected JmlMemberDeclaration refinedDecl
protected JmlMemberDeclaration refiningDecl
| Constructor Detail |
public JmlMemberDeclaration(TokenReference where,
JMemberDeclaration delegee)
| Method Detail |
public boolean isDeprecated()
isDeprecated in interface JMemberDeclarationTypepublic CField getField()
getField in interface JMemberDeclarationTypepublic CMethod getMethod()
getMethod in interface JMemberDeclarationTypepublic CClass getCClass()
getCClass in interface JMemberDeclarationTypepublic void genComments(MjcVisitor p)
genComments in interface JMemberDeclarationTypep - the printwriter into the code is generatedpublic JavadocComment javadocComment()
javadocComment in interface Annotatable
public void checkRefinedModifiers(CContextType context,
JmlMemberDeclaration member)
throws PositionedError
PositionedErrorpublic String stringRepresentation()
public boolean isRefined()
public boolean isRefiningMember()
public void setRefinedMember(JmlMemberDeclaration refinedDecl)
public void setRefiningMember(JmlMemberDeclaration refiningDecl)
public JmlMemberDeclaration getRefinedMember()
public JmlMemberDeclaration getRefiningMember()
public JmlMemberDeclaration getMostRefined()
public String findJavaFileInRefinement()
public abstract JmlMemberAccess jmlAccess()
public abstract void combineSpecifications()
public boolean inJavaFile()
public boolean inBinaryClassFile()
public JmlMethodSpecification getCombinedSpecification()
public JmlVarAssertion[] getCombinedVarAssertions()
public ArrayList inners()
public void accept(MjcVisitor p)
accept in interface JMemberDeclarationTypeaccept in class JmlNodep - the visitor
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||