ResolveResult (Java SE 15 & JDK 15) (original) (raw)

All Implemented Interfaces:

[Serializable](../../../../java.base/java/io/Serializable.html "interface in java.io")


public class ResolveResult extends Object implements Serializable

This class represents the result of resolution of a name. It contains the object to which name was resolved, and the portion of the name that has not been resolved.

A ResolveResult instance is not synchronized against concurrent multithreaded access. Multiple threads trying to access and modify a single ResolveResult instance should lock the object.

Since:

1.3

See Also:

Serialized Form

Fields

Modifier and Type Field Description
protected Name remainingName Field containing the remaining name yet to be resolved.
protected Object resolvedObj Field containing the Object that was resolved to successfully.

Constructors

Modifier Constructor Description
protected ResolveResult() Constructs an instance of ResolveResult with the resolved object and remaining name both initialized to null.
ResolveResult​(Object robj,String rcomp) Constructs a new instance of ResolveResult consisting of the resolved object and the remaining unresolved component.
ResolveResult​(Object robj,Name rname) Constructs a new instance of ResolveResult consisting of the resolved Object and the remaining name.
Modifier and Type Method Description
void appendRemainingComponent​(String name) Adds a single component to the end of remaining name.
void appendRemainingName​(Name name) Adds components to the end of remaining name.
Name getRemainingName() Retrieves the remaining unresolved portion of the name.
Object getResolvedObj() Retrieves the Object to which resolution was successful.
void setRemainingName​(Name name) Sets the remaining name field of this result to name.
void setResolvedObj​(Object obj) Sets the resolved Object field of this result to obj.

Methods declared in class java.lang.Object

[clone](../../../../java.base/java/lang/Object.html#clone%28%29), [equals](../../../../java.base/java/lang/Object.html#equals%28java.lang.Object%29), [finalize](../../../../java.base/java/lang/Object.html#finalize%28%29), [getClass](../../../../java.base/java/lang/Object.html#getClass%28%29), [hashCode](../../../../java.base/java/lang/Object.html#hashCode%28%29), [notify](../../../../java.base/java/lang/Object.html#notify%28%29), [notifyAll](../../../../java.base/java/lang/Object.html#notifyAll%28%29), [toString](../../../../java.base/java/lang/Object.html#toString%28%29), [wait](../../../../java.base/java/lang/Object.html#wait%28%29), [wait](../../../../java.base/java/lang/Object.html#wait%28long%29), [wait](../../../../java.base/java/lang/Object.html#wait%28long,int%29)