public abstract static class Type.Impl.FunctionOrMethod extends Type.Impl.Atom implements Type.FunctionOrMethod
Type.Impl.Atom, Type.Impl.Conjunctable, Type.Impl.Function, Type.Impl.FunctionOrMethod, Type.Impl.Method, Type.Impl.PositiveAtom, Type.Impl.Primitive, Type.Impl.PropertyType.Array, Type.EffectiveArray, Type.EffectiveRecord, Type.EffectiveReference, Type.Function, Type.FunctionOrMethod, Type.Impl, Type.Intersection, Type.Leaf, Type.Method, Type.Negation, Type.Nominal, Type.Primitive, Type.Property, Type.Record, Type.Reference, Type.Union| Modifier and Type | Field and Description |
|---|---|
protected Type.Impl[] |
parameters |
protected Type.Impl[] |
returns |
| Constructor and Description |
|---|
FunctionOrMethod(Type.Impl[] parameters,
Type.Impl[] returns) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Type.Impl o) |
boolean |
equals(Object o) |
int |
hashCode() |
Type.Impl |
parameter(int i)
Get the ith parameter type
|
Type.Impl[] |
params()
Get the parameter types of this function or method type.
|
Type.Impl[] |
returns()
Get the return types of this function or method type.
|
getKind, intersectClosedClosedRecord, intersectOpenClosedRecord, intersectOpenOpenRecordclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitArray, fromString, Function, Intersection, Method, Method, Method, Negation, Nominal, Property, Record, Record, Reference, toImplArrays, toImplOrVoid, toImplRecords, Unionprotected final Type.Impl[] parameters
protected final Type.Impl[] returns
public Type.Impl[] returns()
returns in interface Type.FunctionOrMethodpublic Type.Impl[] params()
params in interface Type.FunctionOrMethodpublic Type.Impl parameter(int i)
Type.FunctionOrMethodparameter in interface Type.FunctionOrMethodpublic int compareTo(Type.Impl o)
compareTo in interface Comparable<Type.Impl>Copyright © 2017. All rights reserved.