public class XMPenv
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected XobjectFile |
env |
protected boolean |
is_module |
static boolean |
isStencilTypecheckallFlag |
static boolean |
isStencilTypecheckFlag |
static boolean |
isStencilTypecheckQuietFlag |
Constructor and Description |
---|
XMPenv() |
XMPenv(XobjectFile env)
Constructor with linked XobjectFile environment.
|
Modifier and Type | Method and Description |
---|---|
boolean |
currentDefIsModule()
Return wheter the current definition is a module.
|
java.lang.String |
currentDefName()
Return the name of the current definition.
|
Ident |
declExternIdent(java.lang.String name,
Xtype type)
Declare an external identifier with the given name and type
in this environment and return the Ident object of the identifier.
|
Ident |
declIdent(java.lang.String name,
Xtype type)
Declare a local (internal) identifier with the given name and type
in this environment and return the Ident object of the identifier.
|
Ident |
declIdent(java.lang.String name,
Xtype type,
Block block)
Declare a local (internal) identifier with the given name and type
in this environment and return the Ident object of the identifier.
|
Ident |
declIdent(java.lang.String name,
Xtype type,
boolean is_external,
Block block)
Declare an identifier with the given name and type.
|
Ident |
declInternIdent(java.lang.String name,
Xtype type)
Declare a local (internal) identifier with the given name and type
in this environment and return the Ident object of the identifier.
|
Ident |
declInternIdent(java.lang.String name,
Xtype type,
Block b) |
Ident |
declIntrinsicIdent(java.lang.String name,
Xtype type)
Declare the identifier as intrinsic function with the name and type.
|
Ident |
declObjectId(java.lang.String objectName,
Block block)
Declare the identifer of Fortran integer 8 with the name and the block
where the identifer is declared.
|
Ident |
declObjectId(java.lang.String objectName,
Block block,
Xobject init)
Declare the identifer of Fortran integer 8 with the name and the block
where the identifer is declared.
|
Ident |
declOrGetSizeArray(Block b) |
void |
declXMParray(XMParray array,
Block block) |
void |
declXMPobject(XMPobject obj,
Block block) |
void |
finalizeEnv()
Finalize this XMPenv.
|
XMPmodule |
findModule(java.lang.String module_name)
Find XMPmodule object of the give module name in this XMPenv environment.
|
Ident |
findVarIdent(java.lang.String name,
Block b)
Search the identifier specified by the given name from the scope
of the given block.
|
Block |
findVarIdentBlock(java.lang.String name,
Block b) |
XMPnodes |
findXMPnodes(java.lang.String name,
Block block) |
XMPobject |
findXMPobject(java.lang.String name,
Block block) |
XMPtemplate |
findXMPtemplate(java.lang.String name,
Block block) |
Ident |
FintrinsicIdent(Xtype t,
java.lang.String name)
Create an identifier for intrinsic function with the type and name.
|
XobjectFile |
getEnv()
Return the XobjectFile which this XMPenv belongs to.
|
java.util.Vector<XMPmodule> |
getModules()
return the found modules as a vector of XMPmodule.
|
boolean |
getStencilTypecheckallFlag() |
boolean |
getStencilTypecheckFlag() |
boolean |
getStencilTypecheckQuietFlag() |
XMPsymbolTable |
getXMPsymbolTable()
Return XMP symbol table assocated with the current defintion.
|
static XMPsymbolTable |
getXMPsymbolTable(XobjectDef def)
Static method to get the XMP sybmol table asscoated with
the give definition.
|
void |
removeIdent(java.lang.String name,
Block block)
Remove the identifier specified with the name and block
where the identifier is decalred, in this XMPenv.
|
void |
setCurrentDef(FuncDefBlock def)
Set the given definition as the current definition in this XMPenv.
|
void |
useModule(java.lang.String module_name)
add the given name of the module to
|
protected XobjectFile env
protected boolean is_module
public static boolean isStencilTypecheckFlag
public static boolean isStencilTypecheckallFlag
public static boolean isStencilTypecheckQuietFlag
public XMPenv()
public XMPenv(XobjectFile env)
public XobjectFile getEnv()
public XMPmodule findModule(java.lang.String module_name)
public void useModule(java.lang.String module_name)
public java.util.Vector<XMPmodule> getModules()
public void setCurrentDef(FuncDefBlock def)
public boolean currentDefIsModule()
public java.lang.String currentDefName()
public static XMPsymbolTable getXMPsymbolTable(XobjectDef def)
public XMPsymbolTable getXMPsymbolTable()
public Ident declExternIdent(java.lang.String name, Xtype type)
public Ident declInternIdent(java.lang.String name, Xtype type)
public Ident declIdent(java.lang.String name, Xtype type, Block block)
public Ident declIdent(java.lang.String name, Xtype type)
public Ident declIdent(java.lang.String name, Xtype type, boolean is_external, Block block)
public void removeIdent(java.lang.String name, Block block)
public Ident declIntrinsicIdent(java.lang.String name, Xtype type)
public Ident declObjectId(java.lang.String objectName, Block block)
public Ident declObjectId(java.lang.String objectName, Block block, Xobject init)
public void finalizeEnv()
public Ident FintrinsicIdent(Xtype t, java.lang.String name)
public Ident findVarIdent(java.lang.String name, Block b)
public XMPtemplate findXMPtemplate(java.lang.String name, Block block)
public boolean getStencilTypecheckFlag()
public boolean getStencilTypecheckallFlag()
public boolean getStencilTypecheckQuietFlag()