VariableDecl¶
-
public class
VariableDeclextends SymbolDecl¶ A symbol declaration object specialized for variables.
Fields¶
formalArgRank¶
-
public int
formalArgRank¶ for a formal parameter, its rank in the parameters list. From 1 up (special 0 for result).
formalArgRankInOrigUnit¶
-
public int
formalArgRankInOrigUnit¶ for a VariableDecl in generated code (e.g. in the differentiated CallGraph), the formalArgRank of its counterpart in the source (i.e. in the original CallGraph).
initFunctionDecls¶
-
public FunctionDecl[]
initFunctionDecls¶ When this is a “pointer-to-function” variable, holding a pointer to a function, holds the function it is given upon initialization.
isReturnVarFromFunction¶
-
public FunctionDecl
isReturnVarFromFunction¶
Constructors¶
VariableDecl¶
-
public
VariableDecl(Tree identTree, WrapperTypeSpec typeSpec)¶
VariableDecl¶
-
public
VariableDecl(Tree identTree, WrapperTypeSpec typeSpec, boolean isATrueSymbolDecl)¶
Methods¶
adoptZones¶
-
public void
adoptZones(VariableDecl model)¶
buildVarDeclaration¶
-
public Tree
buildVarDeclaration(SymbolTable symbolTable)¶
collectUsedTrees¶
equalsOther¶
-
public boolean
equalsOther(VariableDecl varDecl)¶
getDiffSymbolHolder¶
-
public NewSymbolHolder
getDiffSymbolHolder(int diffSort, ActivityPattern pattern, int iReplic)¶ - Returns
the NewSymbolHolder that has been stored by setDiffSymbolHolder() as the differentiated symbol of this VariableDecl, for the given diffSort and for the given replica number
isTarget¶
-
public boolean
isTarget(WrapperTypeSpec modelTypeSpec)¶
recomputeDependsOn¶
-
protected void
recomputeDependsOn(SymbolTable symbolTable)¶
replaceDiffSymbolHolder¶
-
protected void
replaceDiffSymbolHolder(NewSymbolHolder oldNSH, NewSymbolHolder newNSH)¶ For every NewSymbolHolder that is stored in this VariableDecl (in provision of the moment when this Symboldecl receives its finalname), replace it with newNSH if it was oldNSH. This is used when oldNSH is absorbed by newNSH.
setDiffSymbolHolder¶
-
public void
setDiffSymbolHolder(int diffSort, ActivityPattern pattern, int iReplic, NewSymbolHolder nSH)¶ Puts the NewSymbolHolder “nSH” as the differentiated symbol of this VariableDecl, for the given diffSort and for the given replica number. “diffSort” is here because there may be different coexisting derivative symbols for a given original symbol, for example vd, vb, vb0… for a given variable v. “replica” (unless negative) is the number of the replicated diff variable. “pattern” is not used, it is only for FunctionDecl’s.
setReturnVar¶
-
public void
setReturnVar(FunctionDecl funcDecl, boolean isFortran)¶
setType¶
-
public void
setType(WrapperTypeSpec typeSpec)¶
type¶
-
public WrapperTypeSpec
type()¶