LocatorImpl 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供定位符的可选便利实现。
[Android.Runtime.Register("org/xml/sax/helpers/LocatorImpl", DoNotGenerateAcw=true)]
public class LocatorImpl : Java.Lang.Object, IDisposable, Java.Interop.IJavaPeerable, Org.Xml.Sax.ILocator
[<Android.Runtime.Register("org/xml/sax/helpers/LocatorImpl", DoNotGenerateAcw=true)>]
type LocatorImpl = class
inherit Object
interface ILocator
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- 继承
- 派生
- 属性
- 实现
注解
提供定位符的可选便利实现。
<blockquote><em>This module, both source code and documentation, is in the Public Domain, with <strong NO WARRANTY</strong>>.</em> 有关详细信息http://www.saxproject.org, </blockquote>
此类主要适用于应用程序编写器,这些编写器可在文档分析过程中随时创建定位符的持久快照:
Locator locator;
Locator startloc;
public void setLocator (Locator locator)
{
// note the locator
this.locator = locator;
}
public void startDocument ()
{
// save the location of the start of the document
// for future use.
Locator startloc = new LocatorImpl(locator);
}
通常,分析器编写器不会使用此类,因为仅在请求时提供位置信息的效率更高,而不是不断更新定位符对象。
在 SAX 1.0 中添加。
适用于 . 的 org.xml.sax.helpers.LocatorImpl
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
构造函数
LocatorImpl() |
零参数构造函数。 |
LocatorImpl(ILocator) |
复制构造函数。 |
LocatorImpl(IntPtr, JniHandleOwnership) |
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。 |
属性
Class |
返回此 |
ColumnNumber |
返回保存的列号(基于 1)。 - 或 - 设置此定位符的列号(基于 1)。 |
Handle |
基础 Android 实例的句柄。 (继承自 Object) |
JniIdentityHashCode |
提供定位符的可选便利实现。 (继承自 Object) |
JniPeerMembers |
提供定位符的可选便利实现。 |
LineNumber |
返回保存的行号(基于 1)。 - 或 - 设置此定位符的行号(基于 1)。 |
PeerReference |
提供定位符的可选便利实现。 (继承自 Object) |
PublicId |
返回保存的公共标识符。 - 或 - 设置此定位符的公共标识符。 |
SystemId |
返回保存的系统标识符。 - 或 - 设置此定位符的系统标识符。 |
ThresholdClass |
此 API 支持 Mono for Android 基础结构,不打算直接从代码使用。 |
ThresholdType |
此 API 支持 Mono for Android 基础结构,不打算直接从代码使用。 |
方法
Clone() |
创建并返回此对象的副本。 (继承自 Object) |
Dispose() |
提供定位符的可选便利实现。 (继承自 Object) |
Dispose(Boolean) |
提供定位符的可选便利实现。 (继承自 Object) |
Equals(Object) |
指示其他对象是否“等于”此对象。 (继承自 Object) |
GetHashCode() |
返回对象的哈希代码值。 (继承自 Object) |
JavaFinalize() |
当垃圾回收确定不再引用该对象时,由对象上的垃圾回收器调用。 (继承自 Object) |
Notify() |
唤醒正在等待此对象的监视器的单个线程。 (继承自 Object) |
NotifyAll() |
唤醒正在等待此对象的监视器的所有线程。 (继承自 Object) |
SetHandle(IntPtr, JniHandleOwnership) |
设置 Handle 属性。 (继承自 Object) |
ToArray<T>() |
提供定位符的可选便利实现。 (继承自 Object) |
ToString() |
返回对象的字符串表示形式。 (继承自 Object) |
UnregisterFromRuntime() |
提供定位符的可选便利实现。 (继承自 Object) |
Wait() |
使当前线程等待,直到唤醒它,通常是通过 em 通知/em> 或 <em>interrupted</em>。<>< (继承自 Object) |
Wait(Int64, Int32) |
使当前线程等待直到唤醒,通常是通过 <em>通知</em> 或 <em interrupted</em>>,或直到经过一定数量的实时。 (继承自 Object) |
Wait(Int64) |
使当前线程等待直到唤醒,通常是通过 <em>通知</em> 或 <em interrupted</em>>,或直到经过一定数量的实时。 (继承自 Object) |
显式接口实现
IJavaPeerable.Disposed() |
提供定位符的可选便利实现。 (继承自 Object) |
IJavaPeerable.DisposeUnlessReferenced() |
提供定位符的可选便利实现。 (继承自 Object) |
IJavaPeerable.Finalized() |
提供定位符的可选便利实现。 (继承自 Object) |
IJavaPeerable.JniManagedPeerState |
提供定位符的可选便利实现。 (继承自 Object) |
IJavaPeerable.SetJniIdentityHashCode(Int32) |
提供定位符的可选便利实现。 (继承自 Object) |
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) |
提供定位符的可选便利实现。 (继承自 Object) |
IJavaPeerable.SetPeerReference(JniObjectReference) |
提供定位符的可选便利实现。 (继承自 Object) |
扩展方法
JavaCast<TResult>(IJavaObject) |
执行 Android 运行时检查的类型转换。 |
JavaCast<TResult>(IJavaObject) |
提供定位符的可选便利实现。 |
GetJniTypeName(IJavaPeerable) |
提供定位符的可选便利实现。 |