本文整理汇总了C#中Source.getName方法的典型用法代码示例。如果您正苦于以下问题:C# Source.getName方法的具体用法?C# Source.getName怎么用?C# Source.getName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Source
的用法示例。
在下文中一共展示了Source.getName方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: handleError
/**
* Handles an error.
*
* The behaviour of this method is defined by the
* implementation. It may simply record the error message, or
* it may throw an exception.
*/
public void handleError(Source source, int line, int column,
String msg)
{
errors++;
print(source.getName() + ":" + line + ":" + column +
": error: " + msg);
}
示例2: handleWarning
/**
* Handles a warning.
*
* The behaviour of this method is defined by the
* implementation. It may simply record the error message, or
* it may throw an exception.
*/
public void handleWarning(Source source, int line, int column,
String msg)
{
warnings++;
print(source.getName() + ":" + line + ":" + column +
": warning: " + msg);
}
示例3: handleWarning
public override void handleWarning(Source source, int line, int column, string msg)
{
base.handleWarning(source, line, column, msg);
print(source.getName() + ":" + line + ":" + column + ": warning: " + msg);
}
示例4: encodeSource
static XmlElement encodeSource(XmlDocument doc, Source source)
{
XmlElement e = null;
if (source != null)
{
e = doc.CreateElement("source");
e.SetAttribute("name", source.getName());
e.SetAttribute("type", (source.getType() == Source.SourceType.TYPE_RASTER ? "raster" : "feature"));
if (source.getFilterGraph() != null)
e.SetAttribute("graph", source.getFilterGraph().getName());
if (source.getParentSource() != null)
e.SetAttribute("parent", source.getParentSource().getName());
e.AppendChild(encodeURI(doc, source.getURI()));
}
return e;
}
示例5: handleError
public override void handleError(Source source, int line, int column, string msg)
{
base.handleError(source, line, column, msg);
print(source.getName() + ":" + line + ":" + column + ": error: " + msg);
}