jpl
public class JRef extends Term
Deprecated:
JRef is a specialised Term with an Object field, representing JPL's Prolog references to Java objects (or to null).JRef r = new JRef( non_String_object_or_null );A JRef can be used (and re-used) in Compound Terms.
Copyright (C) 1998 Fred Dushin
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library Public License for more details.
See Also: Term
Constructor Summary | |
---|---|
JRef(Object ref)
This constructor creates a JRef, initialized with the supplied
non-String object (or null).
|
Method Summary | |
---|---|
Term[] | args()
The (nonexistent) args of this JRef
|
String | debugString()
Returns a debug-friendly representation of this JRef
|
boolean | equals(Object obj)
Two JRefs are equal if their references are identical (?)
|
Object | ref()
The non-String object (or null) which this jpl.JRef represents
|
String | toString()
Returns a Prolog source text representation of this JRef
|
int | type() |
String | typeName() |
Parameters: ref this JRef's value (a non-String object, or null)
Deprecated:
The (nonexistent) args of this JRefReturns: the (nonexistent) args of this JRef
Deprecated:
Returns a debug-friendly representation of this JRefReturns: a debug-friendly representation of this JRef
Parameters: obj The Object to compare
Returns: true if the Object satisfies the above condition
Returns: the non-String object (or null) which this jpl.JRef represents
Returns: a Prolog source text representation of this JRef