ArrayDim¶
-
public class
ArrayDim
¶ One dimension of an ArrayTypeSpec. Holds the original Tree, and the computed lower and upper dimensions.
Fields¶
overEstimate¶
rankInRef¶
-
protected int
rankInRef
¶ The rank of the reference dimension inside the reference array. -1 for unknown, 0 for unique dimension, else 1 for 1st child, etc.
refArrayTree¶
refQuality¶
-
protected int
refQuality
¶ Prefer sizes that are given as an immediate integer, then as an integer variable, then declared as “:” but certainly allocated, then as a last resort declared as allocatable…
treeForDeclaration¶
Constructors¶
Methods¶
copy¶
detectUnDeclarableLength¶
-
public void
detectUnDeclarableLength
(SymbolTable symbolTable)¶ Mark this dimension (which evaluates well in “symbolTable”) when it cannot be evaluated correctly in the (publicST) SymbolTable in which it must be used for an array declaration
dump¶
-
public void
dump
()¶ Prints in detail the contents of this ArrayDim, onto TapEnv.curOutputStream().
erasePrivateInfo¶
preciseDimension¶
-
protected static ArrayDim
preciseDimension
(ArrayDim mainDim, ArrayDim complementDim, SymbolTable symbolTable)¶
setSize¶
setTree¶
testConformingAndChoose¶
updateImportedDim¶
-
protected void
updateImportedDim
(SymbolTable symbolTable)¶