Class MethodDefinition
- java.lang.Object
-
- com.google.api.generator.engine.ast.MethodDefinition
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMethodDefinition.Builder
-
Constructor Summary
Constructors Constructor Description MethodDefinition()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaccept(AstNodeVisitor visitor)Writes the syntatically-correct Java code representation of this node.abstract com.google.common.collect.ImmutableList<AnnotationNode>annotations()abstract com.google.common.collect.ImmutableList<VariableExpr>arguments()abstract com.google.common.collect.ImmutableList<Statement>body()static MethodDefinition.Builderbuilder()static MethodDefinition.BuilderconstructorBuilder()abstract com.google.common.collect.ImmutableList<CommentStatement>headerCommentStatements()abstract booleanisAbstract()abstract booleanisConstructor()abstract booleanisFinal()abstract booleanisStatic()abstract IdentifierNodemethodIdentifier()abstract ReturnExprreturnExpr()abstract com.google.common.collect.ImmutableList<IdentifierNode>returnTemplateIdentifiers()abstract TypeNodereturnType()abstract ScopeNodescope()abstract com.google.common.collect.ImmutableList<IdentifierNode>templateIdentifiers()abstract com.google.common.collect.ImmutableList<TypeNode>throwsExceptions()abstract MethodDefinition.BuildertoBuilder()
-
-
-
Method Detail
-
scope
public abstract ScopeNode scope()
-
returnType
public abstract TypeNode returnType()
-
methodIdentifier
public abstract IdentifierNode methodIdentifier()
-
headerCommentStatements
public abstract com.google.common.collect.ImmutableList<CommentStatement> headerCommentStatements()
-
annotations
public abstract com.google.common.collect.ImmutableList<AnnotationNode> annotations()
-
throwsExceptions
public abstract com.google.common.collect.ImmutableList<TypeNode> throwsExceptions()
-
arguments
public abstract com.google.common.collect.ImmutableList<VariableExpr> arguments()
-
isStatic
public abstract boolean isStatic()
-
isFinal
public abstract boolean isFinal()
-
isAbstract
public abstract boolean isAbstract()
-
isConstructor
public abstract boolean isConstructor()
-
body
public abstract com.google.common.collect.ImmutableList<Statement> body()
-
templateIdentifiers
public abstract com.google.common.collect.ImmutableList<IdentifierNode> templateIdentifiers()
-
returnTemplateIdentifiers
public abstract com.google.common.collect.ImmutableList<IdentifierNode> returnTemplateIdentifiers()
-
returnExpr
@Nullable public abstract ReturnExpr returnExpr()
-
accept
public void accept(AstNodeVisitor visitor)
Description copied from interface:AstNodeWrites the syntatically-correct Java code representation of this node.
-
toBuilder
public abstract MethodDefinition.Builder toBuilder()
-
builder
public static MethodDefinition.Builder builder()
-
constructorBuilder
public static MethodDefinition.Builder constructorBuilder()
-
-