public class XcodeProgram extends XcodeML
LHS, RHS, UNDEF_DEPTH
Modifier and Type | Method and Description |
---|---|
void |
addError(java.lang.String msg,
int lineno)
Add an error.
|
void |
addWarning(java.lang.String msg,
int lineno)
Add a warning.
|
void |
addWarning(java.lang.String msg,
java.util.List<java.lang.Integer> lineno)
Add a warning.
|
static XcodeProgram |
createFromDocument(org.w3c.dom.Document doc)
Create a XcodeProgram object from an XML document.
|
static XcodeProgram |
createFromFile(java.lang.String input)
Create a XcodeProgram object from an XcodeML input file.
|
static XcodeProgram |
createFromStdInput()
Create a XcodeProgram object from the standard input.
|
java.lang.String |
getCompilerInfo()
Get the XcodeML compiler information.
|
java.util.List<XanalysisError> |
getErrors()
Get all the errors.
|
XglobalDeclTable |
getGlobalDeclarationsTable()
Get the declarations table of the XcodeML program.
|
XsymbolTable |
getGlobalSymbolsTable()
Get the symbols table of the XcodeML program.
|
java.lang.String |
getLanguage()
Get the XcodeML language.
|
java.lang.String |
getSource()
Get the XcodeML source file information.
|
java.lang.String |
getSourceFileOnly()
Get the XcodeML source file information.
|
java.lang.String |
getTime()
Get the XcodeML generation time.
|
java.lang.String |
getVersion()
Get the XcodeML version.
|
java.util.List<XanalysisError> |
getWarnings()
Get all the warnings.
|
createAndAddParam, createAndAddParamIfNotExists, createArrayRef, createBasicType, createBasicType, createDoStmt, createEmptyAssumedShaped, createFctCall, createFunctionType, createId, createId, createIdAndDecl, createIdAndDecl, createIfThen, createIntConstant, createName, createNamedValue, createNode, createPragma, createPrintStatement, createRangeForAssumedShapeArray, createVar, createVar, createVarDecl, createVarDecl, getAllFctDef, getDocument, getTypeTable, importConstOrVar, importNode, importType, write
ancestor, append, append, body, child, children, cloneNode, cloneRawNode, compareFirstChildValues, compareOptionalValues, compareValues, constructRepresentation, copyAttribute, copyEnhancedInfo, delete, deleteWithSiblings, depth, element, equals, filename, findParentFunction, findParentModule, firstChild, getAttribute, getBooleanAttribute, getType, hasAttribute, hasBody, hashCode, hasSameParentBlock, insert, insert, insertAfter, insertBefore, isDeleted, isDirectSibling, isNestedIn, lastChild, lineNo, matchAll, matchAllAncestor, matchAllAncestor, matchAncestor, matchDescendant, matchDirectDescendant, matchDirectDescendant, matchSeq, matchSibling, nextSibling, opcode, prevSibling, removeAttribute, setAttribute, setBooleanAttribute, setFilename, setLine, setType, setValue, toString, value
public static XcodeProgram createFromStdInput()
public static XcodeProgram createFromDocument(org.w3c.dom.Document doc)
doc
- Input DOM document.public static XcodeProgram createFromFile(java.lang.String input)
input
- XcodeML input filename or pathpublic void addError(java.lang.String msg, int lineno)
msg
- Error message.lineno
- Line number that triggered the error.public java.util.List<XanalysisError> getErrors()
public void addWarning(java.lang.String msg, int lineno)
msg
- Warning message.lineno
- Line number that triggered the warning.public void addWarning(java.lang.String msg, java.util.List<java.lang.Integer> lineno)
msg
- Warning message.lineno
- Line numbers that triggered the warning.public java.util.List<XanalysisError> getWarnings()
public XsymbolTable getGlobalSymbolsTable()
public XglobalDeclTable getGlobalDeclarationsTable()
public java.lang.String getVersion()
public java.lang.String getLanguage()
public java.lang.String getTime()
public java.lang.String getSource()
public java.lang.String getSourceFileOnly()
public java.lang.String getCompilerInfo()