All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.tomassetti.symbolsolver.model.declarations.FieldDeclaration Maven / Gradle / Ivy

There is a newer version: 0.3.1
Show newest version
package me.tomassetti.symbolsolver.model.declarations;

import me.tomassetti.symbolsolver.model.typesystem.TypeUsage;

/**
 * Declaration of a field.
 *
 * @author Federico Tomassetti
 */
public interface FieldDeclaration extends ValueDeclaration {

    @Override
    default boolean isField() {
        return true;
    }

    @Override
    default FieldDeclaration asField() {
        return this;
    }

    default FieldDeclaration replaceType(TypeUsage fieldType) {
        throw new UnsupportedOperationException(this.getClass().getCanonicalName());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy