|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpolyglot.ext.jl.types.TypeObject_c
jif.types.label.Label_c
jif.types.label.RuntimeLabel_c
public class RuntimeLabel_c
An implementation of the RuntimeLabel interface.
| Field Summary |
|---|
| Fields inherited from class jif.types.label.Label_c |
|---|
description, toJava |
| Fields inherited from class polyglot.ext.jl.types.TypeObject_c |
|---|
position, ts |
| Constructor Summary | |
|---|---|
RuntimeLabel_c(JifTypeSystem ts,
polyglot.util.Position pos)
|
|
| Method Summary | |
|---|---|
java.util.Collection |
components()
By default, the components of a label is simply the label itself. |
java.lang.String |
componentString(java.util.Set printedLabels)
|
boolean |
equalsImpl(polyglot.types.TypeObject o)
|
int |
hashCode()
|
boolean |
isCanonical()
|
boolean |
isComparable()
Is this label comparable to other labels? |
boolean |
isCovariant()
Is this label covariant? |
boolean |
isDisambiguatedImpl()
Check if the label is disambiguated, without recursing into child labels. |
boolean |
isEnumerable()
Are the components of this label enumerable? |
boolean |
isRuntimeRepresentable()
|
boolean |
isSingleton()
A label is a singleton if it only has a single component. |
boolean |
leq_(Label L,
LabelEnv env,
LabelEnv.SearchState state)
Implementation of leq, should only be called by JifTypeSystem |
Label |
singletonComponent()
Return the single component. |
java.lang.String |
toString()
|
| Methods inherited from class jif.types.label.Label_c |
|---|
componentString, description, hasVariables, isBottom, isDisambiguated, isInvariant, isTop, join, labelCheck, setDescription, simplify, subst, throwTypes, toJava, toString, variables |
| Methods inherited from class polyglot.ext.jl.types.TypeObject_c |
|---|
copy, equals, position, typeSystem |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jif.types.label.Label |
|---|
componentString, description, hasVariables, isBottom, isDisambiguated, isInvariant, isTop, join, labelCheck, setDescription, simplify, subst, throwTypes, toJava, toString, variables |
| Methods inherited from interface polyglot.types.TypeObject |
|---|
position, typeSystem |
| Methods inherited from interface polyglot.util.Copy |
|---|
copy |
| Constructor Detail |
|---|
public RuntimeLabel_c(JifTypeSystem ts,
polyglot.util.Position pos)
| Method Detail |
|---|
public boolean isComparable()
LabelFor example, an UnknownLabel is not comparable to others, neither is a VarLabel. Most other labels are.
isComparable in interface Labelpublic boolean isCovariant()
Label
isCovariant in interface Labelpublic boolean isEnumerable()
LabelFor example, Singletons are enumerable, JoinLabels are enumerable, RuntimeLabel (the label of all runtime representable components) is not enumerable. NOTE: The components of a label are not neccessarily stuck together with a join operation. For example, the MeetLabel uses the meet operation between its components.
isEnumerable in interface Labelpublic boolean isCanonical()
isCanonical in interface ParamisCanonical in interface polyglot.types.TypeObjectpublic boolean isDisambiguatedImpl()
Label_c
isDisambiguatedImpl in class Label_cpublic boolean isSingleton()
Label_c
isSingleton in interface LabelisSingleton in class Label_cpublic boolean isRuntimeRepresentable()
isRuntimeRepresentable in interface LabelisRuntimeRepresentable in interface Parampublic Label singletonComponent()
Label_c
singletonComponent in interface LabelsingletonComponent in class Label_cpublic java.util.Collection components()
Label_c
components in interface Labelcomponents in class Label_cpublic java.lang.String toString()
toString in class Label_cpublic java.lang.String componentString(java.util.Set printedLabels)
componentString in interface LabelcomponentString in class Label_cpublic boolean equalsImpl(polyglot.types.TypeObject o)
equalsImpl in interface polyglot.types.TypeObjectequalsImpl in class Label_cpublic int hashCode()
hashCode in class polyglot.ext.jl.types.TypeObject_c
public boolean leq_(Label L,
LabelEnv env,
LabelEnv.SearchState state)
Label
leq_ in interface LabelL - the label to determine if this label is leq to. This label
always satisfies !this.equals(L)env - the label environment (including principal hierarchy). Will
always be non-null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||