Sha256: 28b714492d5a1abf70315202f421bb5032f06bd20dddd655cc5979fb50a17fda

Contents?: true

Size: 587 Bytes

Versions: 12

Compression:

Stored size: 587 Bytes

Contents

package org.cx4a.rsense.typing.annotation;

public class TypeConstraint implements TypeExpression {
    private Type type;
    private TypeExpression lhs, rhs;

    public TypeConstraint(Type type, TypeExpression lhs, TypeExpression rhs) {
        this.type = type;
        this.lhs = lhs;
        this.rhs = rhs;
    }

    public Type getType() {
        return type;
    }

    public TypeExpression lhs() {
        return lhs;
    }

    public TypeExpression rhs() {
        return rhs;
    }

    @Override
    public String toString() {
        return lhs + " <= " + rhs;
    }
}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rsense-core-0.6.6 src/org/cx4a/rsense/typing/annotation/TypeConstraint.java
rsense-core-0.6.5 src/org/cx4a/rsense/typing/annotation/TypeConstraint.java
rsense-core-0.6.4 src/org/cx4a/rsense/typing/annotation/TypeConstraint.java
rsense-core-0.6.2 src/org/cx4a/rsense/typing/annotation/TypeConstraint.java
rsense-core-0.6.1 src/org/cx4a/rsense/typing/annotation/TypeConstraint.java
rsense-core-0.6.0 src/org/cx4a/rsense/typing/annotation/TypeConstraint.java
rsense-core-0.5.9 src/org/cx4a/rsense/typing/annotation/TypeConstraint.java
rsense-core-0.5.8 src/org/cx4a/rsense/typing/annotation/TypeConstraint.java
rsense-core-0.5.6 src/org/cx4a/rsense/typing/annotation/TypeConstraint.java
rsense-core-0.5.2 src/org/cx4a/rsense/typing/annotation/TypeConstraint.java
rsense-core-0.5.1 src/org/cx4a/rsense/typing/annotation/TypeConstraint.java
rsense-core-0.5.0 src/org/cx4a/rsense/typing/annotation/TypeConstraint.java