|
UTJML | |||||||||
| 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
org.jmlspecs.checker.JmlTypeDeclaration
org.jmlspecs.checker.JmlInterfaceDeclaration
edu.utep.cs.utjml.compiler.JmlInterfaceDeclaration
public class JmlInterfaceDeclaration
This class represents a java interface in the syntax tree
| Field Summary | |
|---|---|
protected JmlCallSequence[] |
callSequences
|
| Fields inherited from class org.jmlspecs.checker.JmlInterfaceDeclaration |
|---|
delegee |
| Fields inherited from class org.jmlspecs.checker.JmlTypeDeclaration |
|---|
axioms, combinedAxioms, combinedConstraints, combinedInners, combinedInvariants, combinedMethods, combinedRepresentsDecls, combinedVarAssertions, constraints, dataGroupMap, hasBeenCombinedWithRefinedDecl, innerList, interfaceModelFields, interfaceWeaklyFlags, invariants, methodList, modelFields, representsDecls, superClassModelFields, varAssertions |
| Fields inherited from class org.jmlspecs.checker.JmlMemberDeclaration |
|---|
refinedDecl, refiningDecl |
| 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.Utils |
|---|
DBG_LEVEL_HIGH, DBG_LEVEL_LOW, DBG_LEVEL_NO |
| Method Summary | |
|---|---|
void |
accept(MjcVisitor p)
Accepts the specified visitor. |
JmlCallSequence[] |
callSequences()
|
CClassContextType |
createContext(CContextType parent)
Creates an interface context for this interface declaration. |
static JmlInterfaceDeclaration |
makeInstance(TokenReference where,
long modifiers,
String ident,
CTypeVariable[] typevariables,
CClassType[] interfaces,
boolean[] interfaceWeaklyFlags,
ArrayList methods,
ArrayList inners,
JPhylum[] fieldsAndInits,
JmlInvariant[] invariants,
JmlConstraint[] constraints,
JmlCallSequence[] callSequences,
JmlRepresentsDecl[] representsDecls,
JmlAxiom[] axioms,
JmlVarAssertion[] varAssertions,
JavadocComment javadoc,
JavaStyleComment[] comment,
boolean isRefinedType)
Constructs an interface declaration in the parsing tree. |
void |
resolveSpecializers(CContextType context)
Computes the values of specializer expressions used to dispatch on compile-time constants. |
void |
typecheck(CContextType context)
Typechecks this interface declaration in the context in which it appears. |
| Methods inherited from class org.jmlspecs.checker.JmlInterfaceDeclaration |
|---|
getAllInterfaceModelFields, isClass, makeInstance |
| Methods inherited from class org.jmlspecs.checker.JmlMemberDeclaration |
|---|
checkRefinedModifiers, findJavaFileInRefinement, genComments, getCClass, getCombinedSpecification, getCombinedVarAssertions, getField, getMethod, getMostRefined, getRefinedMember, getRefiningMember, inBinaryClassFile, isDeprecated, isRefined, isRefiningMember, javadocComment, setRefinedMember, setRefiningMember, 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.JTypeDeclarationType |
|---|
accumAllTypeSignatures, addMember, cachePassParameters, checkInitializers, checkInterface, fields, fieldsAndInits, generateInterface, getAllMethods, getDefaultConstructor, ident, inners, interfaces, isAtTopLevel, methods, modifiers, owner, preprocessDependencies, resolveTopMethods, setDefaultConstructor, setIdent, setInners, setStatic, syntheticOuterThisInaccessible, translateMJ, unsetStatic |
| Methods inherited from interface org.multijava.mjc.JMemberDeclarationType |
|---|
genComments, getCClass, getField, getMethod, isDeprecated |
| Methods inherited from interface org.multijava.util.compiler.PhylumType |
|---|
getTokenReference, setTokenReference |
| Methods inherited from interface org.multijava.javadoc.Annotatable |
|---|
javadocComment |
| Methods inherited from interface org.multijava.mjc.CompilerPassEnterable |
|---|
checkInitializers, checkInterface, getTokenReference, preprocessDependencies, resolveSpecializers, translateMJ, typecheck |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
protected JmlCallSequence[] callSequences
| Method Detail |
|---|
public static JmlInterfaceDeclaration makeInstance(TokenReference where,
long modifiers,
String ident,
CTypeVariable[] typevariables,
CClassType[] interfaces,
boolean[] interfaceWeaklyFlags,
ArrayList methods,
ArrayList inners,
JPhylum[] fieldsAndInits,
JmlInvariant[] invariants,
JmlConstraint[] constraints,
JmlCallSequence[] callSequences,
JmlRepresentsDecl[] representsDecls,
JmlAxiom[] axioms,
JmlVarAssertion[] varAssertions,
JavadocComment javadoc,
JavaStyleComment[] comment,
boolean isRefinedType)
where - the line of this node in the source codemodifiers - the list of modifiers of this classident - the short name of this classinterfaces - the names of this types's interfacesmethods - a list of JMethodDeclarationTypes giving the
methods of this typeinners - a list of JTypeDeclarationTypes giving the
inner classes (and interfaces) of this typefieldsAndInits - the fields and initializers of this type,
passed together because the order matters
for class and object initialization, members
of the array should be instances of
JFieldDeclarationType or
JClassBlockjavadoc - javadoc comments including whether this
type declaration is deprecatedcomment - regular java commentsJMethodDeclarationType,
JFieldDeclarationType,
JClassBlock
public void typecheck(CContextType context)
throws PositionedError
typecheck in interface JTypeDeclarationTypetypecheck in class JmlTypeDeclarationcontext - the context in which this type declaration appears
PositionedError - if any checks failpublic JmlCallSequence[] callSequences()
public CClassContextType createContext(CContextType parent)
createContext in interface JInterfaceDeclarationTypecreateContext in interface JTypeDeclarationTypecreateContext in class JmlInterfaceDeclarationparent - the parent context or null
public void accept(MjcVisitor p)
accept in interface CompilerPassEnterableaccept in interface JMemberDeclarationTypeaccept in class JmlInterfaceDeclarationp - the visitor
public void resolveSpecializers(CContextType context)
throws PositionedError
resolveSpecializers in interface JTypeDeclarationTyperesolveSpecializers in class JmlInterfaceDeclarationcontext - the context in which this class
declaration appears
PositionedError - if the check fails
|
UTJML | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||