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

org.apache.camel.parser.roaster.StatementFieldSource Maven / Gradle / Ivy

There is a newer version: 4.9.0
Show newest version
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.apache.camel.parser.roaster;

import java.util.List;

import org.jboss.forge.roaster.model.Annotation;
import org.jboss.forge.roaster.model.JavaType;
import org.jboss.forge.roaster.model.Type;
import org.jboss.forge.roaster.model.Visibility;
import org.jboss.forge.roaster.model.impl.TypeImpl;
import org.jboss.forge.roaster.model.source.AnnotationSource;
import org.jboss.forge.roaster.model.source.FieldSource;
import org.jboss.forge.roaster.model.source.JavaDocSource;
import org.jboss.forge.roaster.model.source.JavaSource;

public class StatementFieldSource> implements FieldSource {

    // this implementation should only implement the needed logic to support the parser

    private final O origin;
    private final Object internal;
    private final Type type;

    public StatementFieldSource(O origin, Object internal, Object typeInternal) {
        this.origin = origin;
        this.internal = internal;
        this.type = new TypeImpl<>(origin, typeInternal);
    }

    @Override
    public FieldSource setType(Class clazz) {
        return null;
    }

    @Override
    public FieldSource setType(String type) {
        return null;
    }

    @Override
    public FieldSource setLiteralInitializer(String value) {
        return null;
    }

    @Override
    public FieldSource setStringInitializer(String value) {
        return null;
    }

    @Override
    public FieldSource setTransient(boolean value) {
        return null;
    }

    @Override
    public FieldSource setVolatile(boolean value) {
        return null;
    }

    @Override
    public FieldSource setType(JavaType entity) {
        return null;
    }

    @Override
    public List> getAnnotations() {
        return null;
    }

    @Override
    public boolean hasAnnotation(String type) {
        return false;
    }

    @Override
    public boolean hasAnnotation(Class type) {
        return false;
    }

    @Override
    public AnnotationSource getAnnotation(String type) {
        return null;
    }

    @Override
    public AnnotationSource addAnnotation() {
        return null;
    }

    @Override
    public AnnotationSource addAnnotation(String className) {
        return null;
    }

    @Override
    public void removeAllAnnotations() {
    }

    @Override
    public FieldSource removeAnnotation(Annotation annotation) {
        return null;
    }

    @Override
    public AnnotationSource addAnnotation(Class type) {
        return null;
    }

    @Override
    public AnnotationSource getAnnotation(Class type) {
        return null;
    }

    @Override
    public Type getType() {
        return type;
    }

    @Override
    public String getStringInitializer() {
        return null;
    }

    @Override
    public String getLiteralInitializer() {
        return null;
    }

    @Override
    public boolean isTransient() {
        return false;
    }

    @Override
    public boolean isVolatile() {
        return false;
    }

    @Override
    public FieldSource setFinal(boolean finl) {
        return null;
    }

    @Override
    public boolean isFinal() {
        return false;
    }

    @Override
    public Object getInternal() {
        return internal;
    }

    @Override
    public JavaDocSource> getJavaDoc() {
        return null;
    }

    @Override
    public boolean hasJavaDoc() {
        return false;
    }

    @Override
    public FieldSource removeJavaDoc() {
        return null;
    }

    @Override
    public FieldSource setName(String name) {
        return null;
    }

    @Override
    public String getName() {
        return null;
    }

    @Override
    public O getOrigin() {
        return origin;
    }

    @Override
    public FieldSource setStatic(boolean value) {
        return null;
    }

    @Override
    public boolean isStatic() {
        return false;
    }

    @Override
    public FieldSource setPackagePrivate() {
        return null;
    }

    @Override
    public FieldSource setPublic() {
        return null;
    }

    @Override
    public FieldSource setPrivate() {
        return null;
    }

    @Override
    public FieldSource setProtected() {
        return null;
    }

    @Override
    public FieldSource setVisibility(Visibility scope) {
        return null;
    }

    @Override
    public boolean isPackagePrivate() {
        return false;
    }

    @Override
    public boolean isPublic() {
        return false;
    }

    @Override
    public boolean isPrivate() {
        return false;
    }

    @Override
    public boolean isProtected() {
        return false;
    }

    @Override
    public Visibility getVisibility() {
        return null;
    }

    @Override
    public int getColumnNumber() {
        return 0;
    }

    @Override
    public int getStartPosition() {
        return 0;
    }

    @Override
    public int getEndPosition() {
        return 0;
    }

    @Override
    public int getLineNumber() {
        return 0;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy