mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-12 16:27:40 +00:00
74 lines
1.2 KiB
Java
74 lines
1.2 KiB
Java
/*
|
|
* 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> T as(Class<T> cls);
|
|
|
|
public Iterator<IAny> iteratorSingle();
|
|
|
|
public Iterator<IAny[]> iteratorMulti(int n);
|
|
}
|