@Generated(value="com.asakusafw.utils.java.model.syntax.ModelFactory") public class ModelFactoryImpl extends Object implements ModelFactory
ModelFactory.| Constructor and Description |
|---|
ModelFactoryImpl() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewAssertStatement, newAssignmentExpression, newBreakStatement, newCatchClause, newCompilationUnit, newConstructorReferenceExpression, newContinueStatement, newEnhancedForStatement, newFormalParameterDeclaration, newIfStatement, newImportDeclaration, newLambdaExpression, newLambdaExpression, newLambdaExpression, newMethodReferenceExpression, newPackageDeclaration, newReturnStatement, newSuper, newThis, newTryResource, newTryStatement, newTryStatement, newTryStatement, newTryStatement, newTryStatement, newTryStatement, newTryStatement, newVariableDeclarator, newWildcard, newWildcardExtends, newWildcardSuperpublic AlternateConstructorInvocation newAlternateConstructorInvocation(Expression... arguments)
ModelFactoryAlternateConstructorInvocation object.newAlternateConstructorInvocation in interface ModelFactoryarguments - the argumentspublic AlternateConstructorInvocation newAlternateConstructorInvocation(List<? extends Expression> arguments)
ModelFactoryAlternateConstructorInvocation object.newAlternateConstructorInvocation in interface ModelFactoryarguments - the argumentspublic AlternateConstructorInvocation newAlternateConstructorInvocation(List<? extends Type> typeArguments, List<? extends Expression> arguments)
ModelFactoryAlternateConstructorInvocation object.newAlternateConstructorInvocation in interface ModelFactorytypeArguments - the type argumentsarguments - the argumentspublic AnnotationDeclaration newAnnotationDeclaration(Javadoc javadoc, List<? extends Attribute> modifiers, SimpleName name, List<? extends TypeBodyDeclaration> bodyDeclarations)
ModelFactoryAnnotationDeclaration object.newAnnotationDeclaration in interface ModelFactoryjavadoc - the documentation comments, or null if there is no documentation commentsmodifiers - the modifiers and annotationsname - the simple type namebodyDeclarations - the member declarationspublic AnnotationElement newAnnotationElement(SimpleName name, Expression expression)
ModelFactoryAnnotationElement object.newAnnotationElement in interface ModelFactoryname - annotation element nameexpression - the expression valuepublic AnnotationElementDeclaration newAnnotationElementDeclaration(Javadoc javadoc, List<? extends Attribute> modifiers, Type type, SimpleName name, Expression defaultExpression)
ModelFactoryAnnotationElementDeclaration object.newAnnotationElementDeclaration in interface ModelFactoryjavadoc - the documentation comments, or null if there is no documentation commentsmodifiers - the modifiers and annotationstype - annotation element typename - annotation element namedefaultExpression - the default expression value, or null if there is no default valuepublic ArrayAccessExpression newArrayAccessExpression(Expression array, Expression index)
ModelFactoryArrayAccessExpression object.newArrayAccessExpression in interface ModelFactoryarray - the array expressionindex - the index expressionpublic ArrayCreationExpression newArrayCreationExpression(ArrayType type, ArrayInitializer arrayInitializer)
ModelFactoryArrayCreationExpression object.newArrayCreationExpression in interface ModelFactorytype - the array typearrayInitializer - the array initializer, or null if there is no array initializerpublic ArrayCreationExpression newArrayCreationExpression(ArrayType type, List<? extends Expression> dimensionExpressions, ArrayInitializer arrayInitializer)
ModelFactoryArrayCreationExpression object.newArrayCreationExpression in interface ModelFactorytype - the array typedimensionExpressions - the dimension expressionsarrayInitializer - the array initializer, or null if there is no array initializerpublic ArrayInitializer newArrayInitializer(Expression... elements)
ModelFactoryArrayInitializer object.newArrayInitializer in interface ModelFactoryelements - the element expressionspublic ArrayInitializer newArrayInitializer(List<? extends Expression> elements)
ModelFactoryArrayInitializer object.newArrayInitializer in interface ModelFactoryelements - the element expressionspublic ArrayType newArrayType(Type componentType)
ModelFactoryArrayType object.newArrayType in interface ModelFactorycomponentType - the element typepublic AssertStatement newAssertStatement(Expression expression, Expression message)
ModelFactoryAssertStatement object.newAssertStatement in interface ModelFactoryexpression - the assertion expressionmessage - the message expression, or null if there is no message expressionpublic AssignmentExpression newAssignmentExpression(Expression leftHandSide, InfixOperator operator, Expression rightHandSide)
ModelFactoryAssignmentExpression object.newAssignmentExpression in interface ModelFactoryleftHandSide - the left hand side expressionoperator - the simple assignment operator, or an infix operator for compound assignmentrightHandSide - the right hand side expressionpublic BasicType newBasicType(BasicTypeKind typeKind)
ModelFactoryBasicType object.newBasicType in interface ModelFactorytypeKind - the type kindpublic Block newBlock(Statement... statements)
ModelFactoryBlock object.newBlock in interface ModelFactorystatements - the statementspublic Block newBlock(List<? extends Statement> statements)
ModelFactoryBlock object.newBlock in interface ModelFactorystatements - the statementspublic BlockComment newBlockComment(String string)
ModelFactoryBlockComment object.newBlockComment in interface ModelFactorystring - the comment textpublic BreakStatement newBreakStatement(SimpleName target)
ModelFactoryBreakStatement object.newBreakStatement in interface ModelFactorytarget - the target label, or null if there is no target labelspublic CastExpression newCastExpression(Type type, Expression expression)
ModelFactoryCastExpression object.newCastExpression in interface ModelFactorytype - the target typeexpression - the termpublic CatchClause newCatchClause(FormalParameterDeclaration parameter, Block body)
ModelFactoryCatchClause object.newCatchClause in interface ModelFactoryparameter - the expression parameterbody - the catch blockpublic ClassBody newClassBody(List<? extends TypeBodyDeclaration> bodyDeclarations)
ModelFactoryClassBody object.newClassBody in interface ModelFactorybodyDeclarations - the member declarationspublic ClassDeclaration newClassDeclaration(Javadoc javadoc, List<? extends Attribute> modifiers, SimpleName name, Type superClass, List<? extends Type> superInterfaceTypes, List<? extends TypeBodyDeclaration> bodyDeclarations)
ModelFactoryClassDeclaration object.newClassDeclaration in interface ModelFactoryjavadoc - the documentation comments, or null if there is no documentation commentsmodifiers - the modifiers and annotationsname - the simple type namesuperClass - the super class, or null if there is no explicit super classsuperInterfaceTypes - the super interface typesbodyDeclarations - the member declarationspublic ClassDeclaration newClassDeclaration(Javadoc javadoc, List<? extends Attribute> modifiers, SimpleName name, List<? extends TypeParameterDeclaration> typeParameters, Type superClass, List<? extends Type> superInterfaceTypes, List<? extends TypeBodyDeclaration> bodyDeclarations)
ModelFactoryClassDeclaration object.newClassDeclaration in interface ModelFactoryjavadoc - the documentation comments, or null if there is no documentation commentsmodifiers - the modifiers and annotationsname - the simple type nametypeParameters - the type parameterssuperClass - the super class, or null if there is no explicit super classsuperInterfaceTypes - the super interface typesbodyDeclarations - the member declarationspublic ClassInstanceCreationExpression newClassInstanceCreationExpression(Type type, Expression... arguments)
ModelFactoryClassInstanceCreationExpression object.newClassInstanceCreationExpression in interface ModelFactorytype - the target typearguments - the argumentspublic ClassInstanceCreationExpression newClassInstanceCreationExpression(Type type, List<? extends Expression> arguments)
ModelFactoryClassInstanceCreationExpression object.newClassInstanceCreationExpression in interface ModelFactorytype - the target typearguments - the argumentspublic ClassInstanceCreationExpression newClassInstanceCreationExpression(Expression qualifier, List<? extends Type> typeArguments, Type type, List<? extends Expression> arguments, ClassBody body)
ModelFactoryClassInstanceCreationExpression object.newClassInstanceCreationExpression in interface ModelFactoryqualifier - the qualifier expression, or null if there is no qualifierstypeArguments - the type argumentstype - the target typearguments - the argumentsbody - the anonymous class body, or null if the target is not an anonymous classpublic ClassLiteral newClassLiteral(Type type)
ModelFactoryClassLiteral object.newClassLiteral in interface ModelFactorytype - the target typepublic CompilationUnit newCompilationUnit(PackageDeclaration packageDeclaration, List<? extends ImportDeclaration> importDeclarations, List<? extends TypeDeclaration> typeDeclarations, List<? extends Comment> comments)
ModelFactoryCompilationUnit object.newCompilationUnit in interface ModelFactorypackageDeclaration - the package declaration,
or null if this compilation unit is on the default (unnamed) packageimportDeclarations - the import declarationstypeDeclarations - the type declarationscomments - the commentspublic ConditionalExpression newConditionalExpression(Expression condition, Expression thenExpression, Expression elseExpression)
ModelFactoryConditionalExpression object.newConditionalExpression in interface ModelFactorycondition - the condition expressionthenExpression - the truth expressionelseExpression - the false expressionpublic ConstructorDeclaration newConstructorDeclaration(Javadoc javadoc, List<? extends Attribute> modifiers, SimpleName name, List<? extends FormalParameterDeclaration> formalParameters, List<? extends Statement> statements)
ModelFactoryConstructorDeclaration object.newConstructorDeclaration in interface ModelFactoryjavadoc - the documentation comments, or null if there is no documentation commentsmodifiers - the modifiers and annotationsname - the constructor name (as the simple name of the owner class)formalParameters - the formal parametersstatements - the constructor body statementspublic ConstructorDeclaration newConstructorDeclaration(Javadoc javadoc, List<? extends Attribute> modifiers, List<? extends TypeParameterDeclaration> typeParameters, SimpleName name, List<? extends FormalParameterDeclaration> formalParameters, List<? extends Type> exceptionTypes, Block body)
ModelFactoryConstructorDeclaration object.newConstructorDeclaration in interface ModelFactoryjavadoc - the documentation comments, or null if there is no documentation commentsmodifiers - the modifiers and annotationstypeParameters - the type parametersname - the constructor name (as the simple name of the owner class)formalParameters - the formal parametersexceptionTypes - the exception typesbody - the constructor bodypublic ContinueStatement newContinueStatement(SimpleName target)
ModelFactoryContinueStatement object.newContinueStatement in interface ModelFactorytarget - the target label, or null if there is no target labelspublic DoStatement newDoStatement(Statement body, Expression condition)
ModelFactoryDoStatement object.newDoStatement in interface ModelFactorybody - the loop bodycondition - the condition expressionpublic DocBlock newDocBlock(String tag, List<? extends DocElement> elements)
ModelFactoryDocBlock object.newDocBlock in interface ModelFactorytag - the block tagelements - the block elementspublic DocField newDocField(Type type, SimpleName name)
ModelFactoryDocField object.newDocField in interface ModelFactorytype - the field owner type, or null if it is not specifiedname - the field namepublic DocMethod newDocMethod(Type type, SimpleName name, List<? extends DocMethodParameter> formalParameters)
ModelFactoryDocMethod object.newDocMethod in interface ModelFactorytype - the member owner type, or null if it is not specifiedname - the target method (or constructor) nameformalParameters - the target method (or constructor) parameterspublic DocMethodParameter newDocMethodParameter(Type type, SimpleName name, boolean variableArity)
ModelFactoryDocMethodParameter object.newDocMethodParameter in interface ModelFactorytype - the parameter typename - the parameter name, or null if it is not specifiedvariableArity - true if this parameter is variable length, otherwise falsepublic DocText newDocText(String string)
ModelFactoryDocText object.newDocText in interface ModelFactorystring - the contents stringpublic EmptyStatement newEmptyStatement()
ModelFactoryEmptyStatement object.newEmptyStatement in interface ModelFactorypublic EnhancedForStatement newEnhancedForStatement(FormalParameterDeclaration parameter, Expression expression, Statement body)
ModelFactoryEnhancedForStatement object.newEnhancedForStatement in interface ModelFactoryparameter - the loop parameterexpression - the loop targetbody - the loop bodypublic EnumConstantDeclaration newEnumConstantDeclaration(Javadoc javadoc, SimpleName name, Expression... arguments)
ModelFactoryEnumConstantDeclaration object.newEnumConstantDeclaration in interface ModelFactoryjavadoc - the documentation comments, or null if there is no documentation commentsname - the enum constant namearguments - the constructor argumentspublic EnumConstantDeclaration newEnumConstantDeclaration(Javadoc javadoc, List<? extends Attribute> modifiers, SimpleName name, List<? extends Expression> arguments, ClassBody body)
ModelFactoryEnumConstantDeclaration object.newEnumConstantDeclaration in interface ModelFactoryjavadoc - the documentation comments, or null if there is no documentation commentsmodifiers - the modifiers and annotationsname - the enum constant namearguments - the constructor argumentsbody - the class body, or null if there is no class bodypublic EnumDeclaration newEnumDeclaration(Javadoc javadoc, List<? extends Attribute> modifiers, SimpleName name, List<? extends EnumConstantDeclaration> constantDeclarations, TypeBodyDeclaration... bodyDeclarations)
ModelFactoryEnumDeclaration object.newEnumDeclaration in interface ModelFactoryjavadoc - the documentation comments, or null if there is no documentation commentsmodifiers - the modifiers and annotationsname - the simple type nameconstantDeclarations - the enum constant declarationsbodyDeclarations - the member declarationspublic EnumDeclaration newEnumDeclaration(Javadoc javadoc, List<? extends Attribute> modifiers, SimpleName name, List<? extends Type> superInterfaceTypes, List<? extends EnumConstantDeclaration> constantDeclarations, List<? extends TypeBodyDeclaration> bodyDeclarations)
ModelFactoryEnumDeclaration object.newEnumDeclaration in interface ModelFactoryjavadoc - the documentation comments, or null if there is no documentation commentsmodifiers - the modifiers and annotationsname - the simple type namesuperInterfaceTypes - the super interface typesconstantDeclarations - the enum constant declarationsbodyDeclarations - the member declarationspublic ExpressionStatement newExpressionStatement(Expression expression)
ModelFactoryExpressionStatement object.newExpressionStatement in interface ModelFactoryexpression - the internal expressionpublic FieldAccessExpression newFieldAccessExpression(Expression qualifier, SimpleName name)
ModelFactoryFieldAccessExpression object.newFieldAccessExpression in interface ModelFactoryqualifier - the qualifier expressionname - the target field namepublic FieldDeclaration newFieldDeclaration(Javadoc javadoc, List<? extends Attribute> modifiers, Type type, SimpleName name, Expression initializer)
ModelFactoryFieldDeclaration object.newFieldDeclaration in interface ModelFactoryjavadoc - the documentation comments, or null if there is no documentation commentsmodifiers - the modifiers and annotationstype - the field typename - the field nameinitializer - the initializer expression, or null if it is not specifiedpublic FieldDeclaration newFieldDeclaration(Javadoc javadoc, List<? extends Attribute> modifiers, Type type, List<? extends VariableDeclarator> variableDeclarators)
ModelFactoryFieldDeclaration object.newFieldDeclaration in interface ModelFactoryjavadoc - the documentation comments, or null if there is no documentation commentsmodifiers - the modifiers and annotationstype - the field typevariableDeclarators - the variable declaratorspublic ForStatement newForStatement(ForInitializer initialization, Expression condition, StatementExpressionList update, Statement body)
ModelFactoryForStatement object.newForStatement in interface ModelFactoryinitialization - the loop initialization part, or null if it is not specifiedcondition - the loop condition, or null if it is not specifiedupdate - the loop update part, or null if it is not specifiedbody - the loop bodypublic FormalParameterDeclaration newFormalParameterDeclaration(List<? extends Attribute> modifiers, Type type, boolean variableArity, SimpleName name, int extraDimensions)
ModelFactoryFormalParameterDeclaration object.newFormalParameterDeclaration in interface ModelFactorymodifiers - the modifiers and annotationstype - the parameter typevariableArity - true if this parameter is variable arity, otherwise falsename - the parameter nameextraDimensions - the extra dimensionspublic IfStatement newIfStatement(Expression condition, Statement thenStatement, Statement elseStatement)
ModelFactoryIfStatement object.newIfStatement in interface ModelFactorycondition - the condition expressionthenStatement - the truth statementelseStatement - the false statement, or null if it is not specifiedpublic ImportDeclaration newImportDeclaration(ImportKind importKind, Name name)
ModelFactoryImportDeclaration object.newImportDeclaration in interface ModelFactoryimportKind - the import kindname - the import target namepublic InfixExpression newInfixExpression(Expression leftOperand, InfixOperator operator, Expression rightOperand)
ModelFactoryInfixExpression object.newInfixExpression in interface ModelFactoryleftOperand - the left termoperator - the infix operatorrightOperand - the right termpublic InitializerDeclaration newInitializerDeclaration(List<? extends Statement> statements)
ModelFactoryInitializerDeclaration object.newInitializerDeclaration in interface ModelFactorystatements - the initializer bodypublic InitializerDeclaration newInitializerDeclaration(Javadoc javadoc, List<? extends Attribute> modifiers, Block body)
ModelFactoryInitializerDeclaration object.newInitializerDeclaration in interface ModelFactoryjavadoc - the documentation comments, or null if there is no documentation commentsmodifiers - the modifiers and annotationsbody - the initializer bodypublic InstanceofExpression newInstanceofExpression(Expression expression, Type type)
ModelFactoryInstanceofExpression object.newInstanceofExpression in interface ModelFactoryexpression - the left termtype - the target typepublic InterfaceDeclaration newInterfaceDeclaration(Javadoc javadoc, List<? extends Attribute> modifiers, SimpleName name, List<? extends Type> superInterfaceTypes, List<? extends TypeBodyDeclaration> bodyDeclarations)
ModelFactoryInterfaceDeclaration object.newInterfaceDeclaration in interface ModelFactoryjavadoc - the documentation comments, or null if there is no documentation commentsmodifiers - the modifiers and annotationsname - the simple type namesuperInterfaceTypes - the super interface typesbodyDeclarations - the member declarationspublic InterfaceDeclaration newInterfaceDeclaration(Javadoc javadoc, List<? extends Attribute> modifiers, SimpleName name, List<? extends TypeParameterDeclaration> typeParameters, List<? extends Type> superInterfaceTypes, List<? extends TypeBodyDeclaration> bodyDeclarations)
ModelFactoryInterfaceDeclaration object.newInterfaceDeclaration in interface ModelFactoryjavadoc - the documentation comments, or null if there is no documentation commentsmodifiers - the modifiers and annotationsname - the simple type nametypeParameters - the type parameterssuperInterfaceTypes - the super interface typesbodyDeclarations - the member declarationspublic Javadoc newJavadoc(List<? extends DocBlock> blocks)
ModelFactoryJavadoc object.newJavadoc in interface ModelFactoryblocks - the doc blockspublic LabeledStatement newLabeledStatement(SimpleName label, Statement body)
ModelFactoryLabeledStatement object.newLabeledStatement in interface ModelFactorylabel - the label namebody - the body statementpublic LambdaExpression newLambdaExpression(List<? extends LambdaParameter> parameters, LambdaBody body)
ModelFactoryLambdaExpression object.newLambdaExpression in interface ModelFactoryparameters - the lambda parametersbody - the lambda bodypublic LambdaExpression newLambdaExpression(LambdaParameter parameter, LambdaBody body)
ModelFactoryLambdaExpression object.newLambdaExpression in interface ModelFactoryparameter - the lambda parameter namebody - the lambda bodypublic LineComment newLineComment(String string)
ModelFactoryLineComment object.newLineComment in interface ModelFactorystring - the comment textpublic Literal newLiteral(String token)
ModelFactoryLiteral object.newLiteral in interface ModelFactorytoken - the literal tokenpublic LocalClassDeclaration newLocalClassDeclaration(ClassDeclaration declaration)
ModelFactoryLocalClassDeclaration object.newLocalClassDeclaration in interface ModelFactorydeclaration - the target class declarationpublic LocalVariableDeclaration newLocalVariableDeclaration(Type type, SimpleName name, Expression initializer)
ModelFactoryLocalVariableDeclaration object.newLocalVariableDeclaration in interface ModelFactorytype - the variable typename - the variable nameinitializer - the initializer expression, or null if it is not specifiedpublic LocalVariableDeclaration newLocalVariableDeclaration(List<? extends Attribute> modifiers, Type type, List<? extends VariableDeclarator> variableDeclarators)
ModelFactoryLocalVariableDeclaration object.newLocalVariableDeclaration in interface ModelFactorymodifiers - the modifiers and annotationstype - the variable typevariableDeclarators - the variable declaratorspublic MarkerAnnotation newMarkerAnnotation(NamedType type)
ModelFactoryMarkerAnnotation object.newMarkerAnnotation in interface ModelFactorytype - the annotation typepublic MethodDeclaration newMethodDeclaration(Javadoc javadoc, List<? extends Attribute> modifiers, Type returnType, SimpleName name, List<? extends FormalParameterDeclaration> formalParameters, List<? extends Statement> statements)
ModelFactoryMethodDeclaration object.newMethodDeclaration in interface ModelFactoryjavadoc - the documentation comments, or null if there is no documentation commentsmodifiers - the modifiers and annotationsreturnType - the return typename - the method nameformalParameters - the formal parametersstatements - the method body, or null if the method does not have any method bodypublic MethodDeclaration newMethodDeclaration(Javadoc javadoc, List<? extends Attribute> modifiers, List<? extends TypeParameterDeclaration> typeParameters, Type returnType, SimpleName name, List<? extends FormalParameterDeclaration> formalParameters, int extraDimensions, List<? extends Type> exceptionTypes, Block body)
ModelFactoryMethodDeclaration object.newMethodDeclaration in interface ModelFactoryjavadoc - the documentation comments, or null if there is no documentation commentsmodifiers - the modifiers and annotationstypeParameters - the type parametersreturnType - the return typename - the method nameformalParameters - the formal parametersextraDimensions - the extra dimensionsexceptionTypes - the exception typesbody - the method body, or null if the method does not have any method bodypublic MethodInvocationExpression newMethodInvocationExpression(Expression qualifier, SimpleName name, Expression... arguments)
ModelFactoryMethodInvocationExpression object.newMethodInvocationExpression in interface ModelFactoryqualifier - the qualifier expression or type qualifier,
or null if there is no qualifier expression (indicates a simple method invocation)name - the method namearguments - the argumentspublic MethodInvocationExpression newMethodInvocationExpression(Expression qualifier, SimpleName name, List<? extends Expression> arguments)
ModelFactoryMethodInvocationExpression object.newMethodInvocationExpression in interface ModelFactoryqualifier - the qualifier expression or type qualifier,
or null if there is no qualifier expression (indicates a simple method invocation)name - the method namearguments - the argumentspublic MethodInvocationExpression newMethodInvocationExpression(Expression qualifier, List<? extends Type> typeArguments, SimpleName name, List<? extends Expression> arguments)
ModelFactoryMethodInvocationExpression object.newMethodInvocationExpression in interface ModelFactoryqualifier - the qualifier expression or type qualifier,
or null if there is no qualifier expression (indicates a simple method invocation)typeArguments - the type argumentsname - the method namearguments - the argumentspublic ConstructorReferenceExpressionImpl newConstructorReferenceExpression(Type qualifier, List<? extends Type> typeArguments)
ModelFactoryConstructorReferenceExpression object.newConstructorReferenceExpression in interface ModelFactoryqualifier - the type owner typetypeArguments - the type argumentspublic MethodReferenceExpressionImpl newMethodReferenceExpression(TypeOrExpression qualifier, List<? extends Type> typeArguments, SimpleName name)
ModelFactoryMethodReferenceExpression object.newMethodReferenceExpression in interface ModelFactoryqualifier - the qualifier expression or type qualifiertypeArguments - the type argumentsname - the method namepublic Modifier newModifier(ModifierKind modifierKind)
ModelFactoryModifier object.newModifier in interface ModelFactorymodifierKind - the modifier kindpublic NamedType newNamedType(Name name)
ModelFactoryNamedType object.newNamedType in interface ModelFactoryname - the type namepublic NormalAnnotation newNormalAnnotation(NamedType type, List<? extends AnnotationElement> elements)
ModelFactoryNormalAnnotation object.newNormalAnnotation in interface ModelFactorytype - the annotation typeelements - the annotation elementspublic PackageDeclaration newPackageDeclaration(Javadoc javadoc, List<? extends Annotation> annotations, Name name)
ModelFactoryPackageDeclaration object.newPackageDeclaration in interface ModelFactoryjavadoc - the documentation comments, or null if there is no documentation commentsannotations - the annotationsname - the package namepublic ParameterizedType newParameterizedType(Type type, Type... typeArguments)
ModelFactoryParameterizedType object.newParameterizedType in interface ModelFactorytype - the non parameterized typetypeArguments - the type argumentspublic ParameterizedType newParameterizedType(Type type, List<? extends Type> typeArguments)
ModelFactoryParameterizedType object.newParameterizedType in interface ModelFactorytype - the non parameterized typetypeArguments - the type argumentspublic ParenthesizedExpression newParenthesizedExpression(Expression expression)
ModelFactoryParenthesizedExpression object.newParenthesizedExpression in interface ModelFactoryexpression - the internal expressionpublic PostfixExpression newPostfixExpression(Expression operand, PostfixOperator operator)
ModelFactoryPostfixExpression object.newPostfixExpression in interface ModelFactoryoperand - the term expressionoperator - the postfix operatorpublic QualifiedName newQualifiedName(Name qualifier, SimpleName simpleName)
ModelFactoryQualifiedName object.newQualifiedName in interface ModelFactoryqualifier - the qualifiersimpleName - the simple namepublic QualifiedType newQualifiedType(Type qualifier, SimpleName simpleName)
ModelFactoryQualifiedType object.newQualifiedType in interface ModelFactoryqualifier - the qualifier typesimpleName - the simple namepublic ReturnStatement newReturnStatement(Expression expression)
ModelFactoryReturnStatement object.newReturnStatement in interface ModelFactoryexpression - the expression, or null if this does not return anythingpublic SimpleName newSimpleName(String string)
ModelFactorySimpleName object.newSimpleName in interface ModelFactorystring - the identifierpublic SingleElementAnnotation newSingleElementAnnotation(NamedType type, Expression expression)
ModelFactorySingleElementAnnotation object.newSingleElementAnnotation in interface ModelFactorytype - the annotation typeexpression - the value element expressionpublic StatementExpressionList newStatementExpressionList(Expression... expressions)
ModelFactoryStatementExpressionList object.newStatementExpressionList in interface ModelFactoryexpressions - the expression listpublic StatementExpressionList newStatementExpressionList(List<? extends Expression> expressions)
ModelFactoryStatementExpressionList object.newStatementExpressionList in interface ModelFactoryexpressions - the expression listpublic Super newSuper(NamedType qualifier)
ModelFactorySuper object.newSuper in interface ModelFactoryqualifier - the type qualifier, or null if there is no type qualifierpublic SuperConstructorInvocation newSuperConstructorInvocation(Expression... arguments)
ModelFactorySuperConstructorInvocation object.newSuperConstructorInvocation in interface ModelFactoryarguments - the argumentspublic SuperConstructorInvocation newSuperConstructorInvocation(List<? extends Expression> arguments)
ModelFactorySuperConstructorInvocation object.newSuperConstructorInvocation in interface ModelFactoryarguments - the argumentspublic SuperConstructorInvocation newSuperConstructorInvocation(Expression qualifier, List<? extends Type> typeArguments, List<? extends Expression> arguments)
ModelFactorySuperConstructorInvocation object.newSuperConstructorInvocation in interface ModelFactoryqualifier - the qualifier expression, or null if there is no qualifiertypeArguments - the type argumentsarguments - the argumentspublic SwitchCaseLabel newSwitchCaseLabel(Expression expression)
ModelFactorySwitchCaseLabel object.newSwitchCaseLabel in interface ModelFactoryexpression - the case label valuepublic SwitchDefaultLabel newSwitchDefaultLabel()
ModelFactorySwitchDefaultLabel object.newSwitchDefaultLabel in interface ModelFactorypublic SwitchStatement newSwitchStatement(Expression expression, List<? extends Statement> statements)
ModelFactorySwitchStatement object.newSwitchStatement in interface ModelFactoryexpression - the selector expressionstatements - the switch bodypublic SynchronizedStatement newSynchronizedStatement(Expression expression, Block body)
ModelFactorySynchronizedStatement object.newSynchronizedStatement in interface ModelFactoryexpression - the lock expressionbody - the body blockpublic This newThis(NamedType qualifier)
ModelFactoryThis object.newThis in interface ModelFactoryqualifier - the type qualifier, or null if there is no type qualifierpublic ThrowStatement newThrowStatement(Expression expression)
ModelFactoryThrowStatement object.newThrowStatement in interface ModelFactoryexpression - the expression to be thrownpublic TryResource newTryResource(FormalParameterDeclaration parameter, Expression expression)
ModelFactoryTryResource object.newTryResource in interface ModelFactoryparameter - the resource variable declarationexpression - the resource expressionpublic TryStatement newTryStatement(List<? extends TryResource> resources, Block tryBlock, List<? extends CatchClause> catchClauses, Block finallyBlock)
ModelFactoryTryStatement object.newTryStatement in interface ModelFactoryresources - the resource statementstryBlock - the try clausecatchClauses - the catch clausesfinallyBlock - the finally clause, or null if it is not specifiedpublic TypeParameterDeclaration newTypeParameterDeclaration(SimpleName name, Type... typeBounds)
ModelFactoryTypeParameterDeclaration object.newTypeParameterDeclaration in interface ModelFactoryname - the type variable nametypeBounds - the bound typespublic TypeParameterDeclaration newTypeParameterDeclaration(SimpleName name, List<? extends Type> typeBounds)
ModelFactoryTypeParameterDeclaration object.newTypeParameterDeclaration in interface ModelFactoryname - the type variable nametypeBounds - the bound typespublic UnaryExpression newUnaryExpression(UnaryOperator operator, Expression operand)
ModelFactoryUnaryExpression object.newUnaryExpression in interface ModelFactoryoperator - the unary operatoroperand - the term expressionpublic UnionType newUnionType(Type... alternativeTypes)
ModelFactoryUnionType object.newUnionType in interface ModelFactoryalternativeTypes - the alternativespublic UnionType newUnionType(List<? extends Type> alternativeTypes)
ModelFactoryUnionType object.newUnionType in interface ModelFactoryalternativeTypes - the alternativespublic VariableDeclarator newVariableDeclarator(SimpleName name, int extraDimensions, Expression initializer)
ModelFactoryVariableDeclarator object.newVariableDeclarator in interface ModelFactoryname - the variable nameextraDimensions - the extra dimensionsinitializer - the initializer expression, or null if it is not specifiedpublic WhileStatement newWhileStatement(Expression condition, Statement body)
ModelFactoryWhileStatement object.newWhileStatement in interface ModelFactorycondition - the condition expressionbody - the loop bodypublic Wildcard newWildcard(WildcardBoundKind boundKind, Type typeBound)
ModelFactoryWildcard object.newWildcard in interface ModelFactoryboundKind - the bound type kindtypeBound - the bound type, or null if there is no bound typesCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.