Sha256: 3f2b4566a2126b9eef9badbba743ce010206699d4c448bc2dc953dd686266bcf

Contents?: true

Size: 859 Bytes

Versions: 12

Compression:

Stored size: 859 Bytes

Contents

package org.cx4a.rsense.typing.annotation;

import java.util.List;

public class TypeApplication implements TypeExpression {
    private TypeIdentity ident;
    private List<TypeExpression> types;

    public TypeApplication(TypeIdentity ident, List<TypeExpression> types) {
        this.ident = ident;
        this.types = types;
    }

    public TypeIdentity getIdentity() {
        return ident;
    }

    public List<TypeExpression> getTypes() {
        return types;
    }

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

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(ident.toString());
        sb.append('<');
        for (TypeExpression type : types) {
            sb.append(type.toString());
        }
        sb.append('>');
        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/TypeApplication.java
rsense-core-0.6.5 src/org/cx4a/rsense/typing/annotation/TypeApplication.java
rsense-core-0.6.4 src/org/cx4a/rsense/typing/annotation/TypeApplication.java
rsense-core-0.6.2 src/org/cx4a/rsense/typing/annotation/TypeApplication.java
rsense-core-0.6.1 src/org/cx4a/rsense/typing/annotation/TypeApplication.java
rsense-core-0.6.0 src/org/cx4a/rsense/typing/annotation/TypeApplication.java
rsense-core-0.5.9 src/org/cx4a/rsense/typing/annotation/TypeApplication.java
rsense-core-0.5.8 src/org/cx4a/rsense/typing/annotation/TypeApplication.java
rsense-core-0.5.6 src/org/cx4a/rsense/typing/annotation/TypeApplication.java
rsense-core-0.5.2 src/org/cx4a/rsense/typing/annotation/TypeApplication.java
rsense-core-0.5.1 src/org/cx4a/rsense/typing/annotation/TypeApplication.java
rsense-core-0.5.0 src/org/cx4a/rsense/typing/annotation/TypeApplication.java