anvil.core.net
Class AnyURL

java.lang.Object
  |
  +--anvil.core.Any
        |
        +--anvil.core.AnyAbstractClass
              |
              +--anvil.core.net.AnyURL
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable

public class AnyURL
extends AnyAbstractClass

class AnyURL


Field Summary
static NativeClass _class
           
static java.lang.Object[] newInstance
           
static java.lang.Object[] p_openStream
           
static java.lang.Object[] p_sameFile
           
 
Fields inherited from class anvil.core.Any
ARRAY0, DOUBLE_MINUS_ONE, DOUBLE_ONE, DOUBLE_ZERO, EMPTY_STRING, EMPTY_TUPLE, FALSE, INF, IS_ARRAY, IS_BINARY, IS_BOOLEAN, IS_BUFFER, IS_CLASS, IS_DOUBLE, IS_ENUMERATION, IS_INF, IS_INT, IS_LIST, IS_MAP, IS_NEG_INF, IS_NULL, IS_PATTERN, IS_RANGE, IS_STRING, IS_TUPLE, IS_UNDEFINED, MINUS_ONE, NAN, NEG_INF, NULL, ONE, p_compareTo, p_each, p_equals, p_pipe, p_select, THREE, TRUE, TWO, UNDEFINED, ZERO
 
Constructor Summary
AnyURL(java.net.URL url)
           
 
Method Summary
 ClassType classOf()
          Returns the type of this Any.
static Any create(java.lang.String url)
          Constructs Any containing IS_STRING
 boolean equals(java.lang.Object o)
          Tests for equality.
 Any m_getAddress(Context context)
           
 Any m_getFile()
           
 Any m_getHost()
           
 Any m_getPort()
           
 Any m_getProtocol()
           
 Any m_getRef()
           
 Any m_open(Context context)
           
 Any m_openStream(Context context, Any[] parameters)
           
 Any m_sameFile(Any url_)
           
static Any newInstance(Context context, Any p1, java.lang.String p2)
           
 void serialize(Serializer serializer)
           
 java.io.Writer toAnvil(java.io.Writer writer)
           
 Code toCode(Code code)
           
 java.lang.Object toObject()
          Gets the contained value as java.lang.Object.
 java.lang.String toString()
          Converts contained value into String.
static Any unserialize(Unserializer unserializer)
           
 
Methods inherited from class anvil.core.AnyAbstractClass
doSerialize, isMutable, serializeObject, toBoolean, typeOf, unserializeObject
 
Methods inherited from class anvil.core.Any
_clone, _copy, _invoke, _invoke, _invoke, _invoke, _invoke, _invoke, _serialize, _unserialize, _wakeup, add, classNameOf, clone, coerce, compare, compareTo, concat, contains, copy, create, create, create, create, create, create, create, create, create, create, create, create, create, decrease, deleteAttribute, deleteReference, divide, execute, execute, execute, execute, execute, execute, getAttribute, getRef, getReference, has, increase, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, isArray, isBinary, isBoolean, isBuffer, isDefined, isDouble, isInstanceOf, isInt, isIterator, isList, isMap, isNull, isPattern, isRange, isRef, isSequence, isString, isTuple, isUndefined, iterator, m_clone, m_compareTo, m_copy, m_each, m_equals, m_hashCode, m_pipe, m_select, m_toBoolean, m_toString, minus, modulo, multiply, not, plus, setAttribute, setRef, setReference, setReference, sizeOf, subtract, toAnvil, toAnyBoolean, toAnyDouble, toAnyInt, toAnyString, toArray, toBinary, toBuffer, toByte, toChar, toDouble, toInt, toList, toLong, toMap, toPattern, toRange, toTuple, type
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

newInstance

public static final java.lang.Object[] newInstance

p_sameFile

public static final java.lang.Object[] p_sameFile

p_openStream

public static final java.lang.Object[] p_openStream

_class

public static final NativeClass _class
Constructor Detail

AnyURL

public AnyURL(java.net.URL url)
Method Detail

newInstance

public static final Any newInstance(Context context,
                                    Any p1,
                                    java.lang.String p2)

create

public static final Any create(java.lang.String url)
Description copied from class: Any
Constructs Any containing IS_STRING

Parameters:
url - String value

classOf

public final ClassType classOf()
Description copied from class: Any
Returns the type of this Any.

Specified by:
classOf in class AnyAbstractClass

toObject

public java.lang.Object toObject()
Description copied from class: Any
Gets the contained value as java.lang.Object.

Overrides:
toObject in class Any
Returns:
Value as Object.

toString

public java.lang.String toString()
Description copied from class: Any
Converts contained value into String.

Overrides:
toString in class AnyAbstractClass
Returns:
Value as String.

toAnvil

public java.io.Writer toAnvil(java.io.Writer writer)
                       throws java.io.IOException
Overrides:
toAnvil in class Any
java.io.IOException

toCode

public Code toCode(Code code)
Overrides:
toCode in class Any

equals

public boolean equals(java.lang.Object o)
Description copied from class: Any
Tests for equality.

Overrides:
equals in class Any
Returns:
true if equal, false otherwise.

serialize

public void serialize(Serializer serializer)
               throws java.io.IOException
Overrides:
serialize in class AnyAbstractClass
java.io.IOException

unserialize

public static final Any unserialize(Unserializer unserializer)
                             throws UnserializationException
UnserializationException

m_getFile

public Any m_getFile()

m_getHost

public Any m_getHost()

m_getAddress

public Any m_getAddress(Context context)

m_getPort

public Any m_getPort()

m_getProtocol

public Any m_getProtocol()

m_getRef

public Any m_getRef()

m_sameFile

public Any m_sameFile(Any url_)

m_open

public Any m_open(Context context)

m_openStream

public Any m_openStream(Context context,
                        Any[] parameters)