Sha256: 1ae1ed0b4ece291fb2115f91f66deb8f3a3b184ebf823fdc4e0a0f932bec4b9c

Contents?: true

Size: 572 Bytes

Versions: 12

Compression:

Stored size: 572 Bytes

Contents

package org.cx4a.rsense.typing.annotation;

import java.util.ArrayList;

public class TypeUnion extends ArrayList<TypeExpression> implements TypeExpression {
    private static final long serialVersionUID = 0L;

    public Type getType() {
        return Type.UNION;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        String delim = "";
        for (TypeExpression expr : this) {
            sb.append(delim);
            delim = " or ";
            sb.append(expr);
        }
        return sb.toString();
    }
}

Version data entries

12 entries across 12 versions & 1 rubygems

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