org.apache.camel.parser.roaster.AnonymousMethodSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camel-route-parser Show documentation
Show all versions of camel-route-parser Show documentation
Java and XML source code parser for Camel routes
The 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.lang.annotation.Annotation;
import java.util.List;
import org.jboss.forge.roaster.model.JavaType;
import org.jboss.forge.roaster.model.Type;
import org.jboss.forge.roaster.model.TypeVariable;
import org.jboss.forge.roaster.model.Visibility;
import org.jboss.forge.roaster.model.source.AnnotationSource;
import org.jboss.forge.roaster.model.source.JavaClassSource;
import org.jboss.forge.roaster.model.source.JavaDocSource;
import org.jboss.forge.roaster.model.source.MethodSource;
import org.jboss.forge.roaster.model.source.ParameterSource;
import org.jboss.forge.roaster.model.source.TypeVariableSource;
/**
* In use when we have discovered a RouteBuilder being as anonymous inner class
*/
public class AnonymousMethodSource implements MethodSource {
// this implementation should only implement the needed logic to support the parser
private final JavaClassSource origin;
private final Object internal;
public AnonymousMethodSource(JavaClassSource origin, Object internal) {
this.origin = origin;
this.internal = internal;
}
@Override
public MethodSource setDefault(boolean b) {
return null;
}
@Override
public MethodSource setSynchronized(boolean b) {
return null;
}
@Override
public MethodSource setNative(boolean b) {
return null;
}
@Override
public MethodSource setReturnType(Class> aClass) {
return null;
}
@Override
public MethodSource setReturnType(String s) {
return null;
}
@Override
public MethodSource setReturnType(JavaType> javaType) {
return null;
}
@Override
public MethodSource setReturnTypeVoid() {
return null;
}
@Override
public MethodSource setBody(String s) {
return null;
}
@Override
public MethodSource setConstructor(boolean b) {
return null;
}
@Override
public MethodSource setParameters(String s) {
return null;
}
@Override
public MethodSource addThrows(String s) {
return null;
}
@Override
public MethodSource addThrows(Class extends Exception> aClass) {
return null;
}
@Override
public MethodSource removeThrows(String s) {
return null;
}
@Override
public MethodSource removeThrows(Class extends Exception> aClass) {
return null;
}
@Override
public boolean isSynchronized() {
return false;
}
@Override
public boolean isNative() {
return false;
}
@Override
public String getBody() {
return null;
}
@Override
public boolean isConstructor() {
return false;
}
@Override
public Type getReturnType() {
return null;
}
@Override
public boolean isReturnTypeVoid() {
return false;
}
@Override
public List> getParameters() {
return null;
}
@Override
public String toSignature() {
return null;
}
@Override
public List getThrownExceptions() {
return null;
}
@Override
public boolean isDefault() {
return false;
}
@Override
public ParameterSource addParameter(Class> aClass, String s) {
return null;
}
@Override
public ParameterSource addParameter(String s, String s1) {
return null;
}
@Override
public ParameterSource addParameter(JavaType> javaType, String s) {
return null;
}
@Override
public void removeAllAnnotations() {
}
@Override
public MethodSource removeParameter(ParameterSource parameterSource) {
return null;
}
@Override
public MethodSource removeParameter(Class> aClass, String s) {
return null;
}
@Override
public MethodSource removeParameter(String s, String s1) {
return null;
}
@Override
public MethodSource removeParameter(JavaType> javaType, String s) {
return null;
}
@Override
public MethodSource setAbstract(boolean b) {
return null;
}
@Override
public List> getAnnotations() {
return null;
}
@Override
public boolean hasAnnotation(Class extends Annotation> aClass) {
return false;
}
@Override
public boolean hasAnnotation(String s) {
return false;
}
@Override
public AnnotationSource getAnnotation(Class extends Annotation> aClass) {
return null;
}
@Override
public AnnotationSource getAnnotation(String s) {
return null;
}
@Override
public AnnotationSource addAnnotation() {
return null;
}
@Override
public AnnotationSource addAnnotation(Class extends Annotation> aClass) {
return null;
}
@Override
public AnnotationSource addAnnotation(String s) {
return null;
}
@Override
public MethodSource removeAnnotation(
org.jboss.forge.roaster.model.Annotation annotation) {
return null;
}
@Override
public List> getTypeVariables() {
return null;
}
@Override
public TypeVariableSource getTypeVariable(String s) {
return null;
}
@Override
public TypeVariableSource addTypeVariable() {
return null;
}
@Override
public TypeVariableSource addTypeVariable(String s) {
return null;
}
@Override
public MethodSource removeTypeVariable(String s) {
return null;
}
@Override
public MethodSource removeTypeVariable(TypeVariable> typeVariable) {
return null;
}
@Override
public boolean hasJavaDoc() {
return false;
}
@Override
public boolean isAbstract() {
return false;
}
@Override
public MethodSource setFinal(boolean b) {
return null;
}
@Override
public boolean isFinal() {
return false;
}
@Override
public Object getInternal() {
return internal;
}
@Override
public JavaDocSource> getJavaDoc() {
return null;
}
@Override
public MethodSource removeJavaDoc() {
return null;
}
@Override
public MethodSource setName(String s) {
return null;
}
@Override
public String getName() {
return null;
}
@Override
public JavaClassSource getOrigin() {
return origin;
}
@Override
public MethodSource setStatic(boolean b) {
return null;
}
@Override
public boolean isStatic() {
return false;
}
@Override
public MethodSource setPackagePrivate() {
return null;
}
@Override
public MethodSource setPublic() {
return null;
}
@Override
public MethodSource setPrivate() {
return null;
}
@Override
public MethodSource setProtected() {
return null;
}
@Override
public MethodSource setVisibility(Visibility visibility) {
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;
}
@Override
public boolean hasTypeVariable(String arg0) {
return false;
}
@Override
public MethodSource setReturnType(Type> arg0) {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy