Package com.google.javascript.jscomp
Class ReferenceCollection
- java.lang.Object
-
- com.google.javascript.jscomp.ReferenceCollection
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<Reference>
public final class ReferenceCollection extends java.lang.Object implements java.lang.Iterable<Reference>, java.io.Serializable
A collection of references. Can be subclassed to apply checks or store additional state when adding.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReferenceCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isWellDefined()
Determines if the variable for this reference collection is "well-defined." A variable is well-defined if we can prove at compile-time that it's assigned a value before it's used.java.util.Iterator<Reference>
iterator()
java.lang.String
toString()
-
-
-
Method Detail
-
iterator
public java.util.Iterator<Reference> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<Reference>
-
isWellDefined
protected boolean isWellDefined()
Determines if the variable for this reference collection is "well-defined." A variable is well-defined if we can prove at compile-time that it's assigned a value before it's used.Notice that if this function returns false, this doesn't imply that the variable is used before it's assigned. It just means that we don't have enough information to make a definitive judgment.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-