|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjif.types.label.AccessPath
jif.types.label.AccessPathField
public class AccessPathField
Represent a final access path whose last element is a field access to a final field, for example "p.f", where p is a final access path.
AccessPath,
Serialized Form| Constructor Summary | |
|---|---|
AccessPathField(AccessPath path,
polyglot.types.FieldInstance fi,
java.lang.String fieldName,
polyglot.util.Position pos)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
exprString()
|
polyglot.types.FieldInstance |
fieldInstance()
|
int |
hashCode()
|
boolean |
isCanonical()
|
boolean |
isNeverNull()
|
protected boolean |
isTargetNeverNull()
|
boolean |
isUninterpreted()
|
PathMap |
labelcheck(JifContext A)
|
AccessPath |
path()
|
AccessPathRoot |
root()
|
void |
setIsNeverNull()
|
AccessPath |
subst(AccessPathRoot r,
AccessPath e)
Return the result of substituting the root r with the access path e. |
java.util.List |
throwTypes(polyglot.types.TypeSystem ts)
Return a list of types that may be thrown as a result of the runtime evaluation of this path. |
java.lang.String |
toString()
|
polyglot.types.Type |
type()
The type of the access path (when the access path is regarded as an expression). |
void |
verify(JifContext A)
Go through the path, check that all the type information is set correctly, and check that every field access is to a final field, and any local used is final |
| Methods inherited from class jif.types.label.AccessPath |
|---|
position |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AccessPathField(AccessPath path,
polyglot.types.FieldInstance fi,
java.lang.String fieldName,
polyglot.util.Position pos)
| Method Detail |
|---|
public boolean isNeverNull()
isNeverNull in class AccessPathpublic void setIsNeverNull()
public boolean isCanonical()
isCanonical in class AccessPathpublic boolean isUninterpreted()
isUninterpreted in class AccessPath
public AccessPath subst(AccessPathRoot r,
AccessPath e)
AccessPath
subst in class AccessPathpublic final AccessPathRoot root()
root in class AccessPathpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String exprString()
exprString in class AccessPathpublic AccessPath path()
public polyglot.types.FieldInstance fieldInstance()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class AccessPathpublic polyglot.types.Type type()
AccessPath
type in class AccessPathpublic PathMap labelcheck(JifContext A)
labelcheck in class AccessPathprotected boolean isTargetNeverNull()
public void verify(JifContext A)
throws polyglot.types.SemanticException
AccessPath
verify in class AccessPathpolyglot.types.SemanticExceptionpublic java.util.List throwTypes(polyglot.types.TypeSystem ts)
AccessPath
throwTypes in class AccessPath
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||