/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package stanhebben.zenscript.value; import java.util.Iterator; /** * * @author Stanneke */ public interface IAny { public IAny not(); public IAny neg(); public IAny add(IAny value); public IAny sub(IAny value); public IAny cat(IAny value); public IAny mul(IAny value); public IAny div(IAny value); public IAny mod(IAny value); public IAny and(IAny value); public IAny or(IAny value); public IAny xor(IAny value); public IAny range(IAny value); public int compareTo(IAny value); public boolean contains(IAny value); public IAny member(String value); public IAny indexGet(IAny key); public void indexSet(IAny key, IAny value); public IAny call(IAny... values); public boolean asBool(); public byte asByte(); public short asShort(); public int asInt(); public long asLong(); public float asFloat(); public double asDouble(); public String asString(); public T as(Class cls); public Iterator iteratorSingle(); public Iterator iteratorMulti(int n); }