Package | Description |
---|---|
com.asakusafw.utils.java.internal.model.syntax |
Naive Java DOM implementations.
|
com.asakusafw.utils.java.internal.model.util |
Internal utlities for Java DOM building/emitting.
|
com.asakusafw.utils.java.model.syntax |
Interfaces for representing Java DOMs.
|
Modifier and Type | Class and Description |
---|---|
class |
BlockImpl
An implementation of
Block . |
Modifier and Type | Method and Description |
---|---|
Block |
CatchClauseImpl.getBody() |
Block |
MethodDeclarationImpl.getBody() |
Block |
InitializerDeclarationImpl.getBody() |
Block |
SynchronizedStatementImpl.getBody() |
Block |
ConstructorDeclarationImpl.getBody() |
Block |
TryStatementImpl.getFinallyBlock() |
Block |
TryStatementImpl.getTryBlock() |
Block |
ModelFactoryImpl.newBlock(List<? extends Statement> statements) |
Block |
ModelFactoryImpl.newBlock(Statement... statements) |
Modifier and Type | Method and Description |
---|---|
CatchClause |
ModelFactoryImpl.newCatchClause(FormalParameterDeclaration parameter,
Block body) |
ConstructorDeclaration |
ModelFactoryImpl.newConstructorDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
List<? extends TypeParameterDeclaration> typeParameters,
SimpleName name,
List<? extends FormalParameterDeclaration> formalParameters,
List<? extends Type> exceptionTypes,
Block body) |
InitializerDeclaration |
ModelFactoryImpl.newInitializerDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
Block body) |
MethodDeclaration |
ModelFactoryImpl.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) |
SynchronizedStatement |
ModelFactoryImpl.newSynchronizedStatement(Expression expression,
Block body) |
TryStatement |
ModelFactoryImpl.newTryStatement(List<? extends TryResource> resources,
Block tryBlock,
List<? extends CatchClause> catchClauses,
Block finallyBlock) |
void |
CatchClauseImpl.setBody(Block body)
Sets the
catch block body. |
void |
MethodDeclarationImpl.setBody(Block body)
Sets the method body.
|
void |
InitializerDeclarationImpl.setBody(Block body)
Sets the initializer body block.
|
void |
SynchronizedStatementImpl.setBody(Block body)
Sets the body block.
|
void |
ConstructorDeclarationImpl.setBody(Block body)
Sets the constructor body block.
|
void |
TryStatementImpl.setFinallyBlock(Block finallyBlock)
Sets the body block of
finally clause. |
void |
TryStatementImpl.setTryBlock(Block tryBlock)
Sets the body block of
try clause. |
Modifier and Type | Method and Description |
---|---|
Void |
ModelDigester.visitBlock(Block elem,
com.asakusafw.utils.java.internal.model.util.DigestContext context) |
Boolean |
ModelMatcher.visitBlock(Block elem,
Model context) |
Modifier and Type | Method and Description |
---|---|
Block |
SynchronizedStatement.getBody()
Returns the body block.
|
Block |
InitializerDeclaration.getBody()
Returns the initializer body block.
|
Block |
MethodOrConstructorDeclaration.getBody()
Returns the method or constructor body.
|
Block |
ConstructorDeclaration.getBody()
Returns the constructor body.
|
Block |
CatchClause.getBody()
Returns the
catch block body. |
Block |
TryStatement.getFinallyBlock()
Returns the body block of
finally clause. |
Block |
TryStatement.getTryBlock()
Returns the body block of
try clause. |
Block |
ModelFactory.newBlock(List<? extends Statement> statements)
Returns a new
Block object. |
Block |
ModelFactory.newBlock(Statement... statements)
Returns a new
Block object. |
Modifier and Type | Method and Description |
---|---|
CatchClause |
ModelFactory.newCatchClause(FormalParameterDeclaration parameter,
Block body)
Returns a new
CatchClause object. |
ConstructorDeclaration |
ModelFactory.newConstructorDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
List<? extends TypeParameterDeclaration> typeParameters,
SimpleName name,
List<? extends FormalParameterDeclaration> formalParameters,
List<? extends Type> exceptionTypes,
Block body)
Returns a new
ConstructorDeclaration object. |
InitializerDeclaration |
ModelFactory.newInitializerDeclaration(Javadoc javadoc,
List<? extends Attribute> modifiers,
Block body)
Returns a new
InitializerDeclaration object. |
MethodDeclaration |
ModelFactory.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)
Returns a new
MethodDeclaration object. |
SynchronizedStatement |
ModelFactory.newSynchronizedStatement(Expression expression,
Block body)
Returns a new
SynchronizedStatement object. |
default TryStatement |
ModelFactory.newTryStatement(Block tryBlock,
Block finallyBlock)
Returns a new
TryStatement object. |
default TryStatement |
ModelFactory.newTryStatement(Block tryBlock,
List<? extends CatchClause> catchClauses)
Returns a new
TryStatement object. |
default TryStatement |
ModelFactory.newTryStatement(Block tryBlock,
List<? extends CatchClause> catchClauses,
Block finallyBlock)
Returns a new
TryStatement object. |
default TryStatement |
ModelFactory.newTryStatement(List<? extends TryResource> resources,
Block tryBlock)
Returns a new
TryStatement object. |
default TryStatement |
ModelFactory.newTryStatement(List<? extends TryResource> resources,
Block tryBlock,
Block finallyBlock)
Returns a new
TryStatement object. |
default TryStatement |
ModelFactory.newTryStatement(List<? extends TryResource> resources,
Block tryBlock,
List<? extends CatchClause> catchClauses)
Returns a new
TryStatement object. |
TryStatement |
ModelFactory.newTryStatement(List<? extends TryResource> resources,
Block tryBlock,
List<? extends CatchClause> catchClauses,
Block finallyBlock)
Returns a new
TryStatement object. |
default TryStatement |
ModelFactory.newTryStatement(TryResource resource,
Block tryBlock)
Returns a new
TryStatement object. |
R |
StrictVisitor.visitBlock(Block elem,
C context) |
R |
Visitor.visitBlock(Block elem,
C context)
Processes
Block using this visitor. |
Modifier and Type | Method and Description |
---|---|
default CatchClause |
ModelFactory.newCatchClause(Type type,
SimpleName name,
Function<? super SimpleName,? extends Block> body)
Returns a new
CatchClause object. |
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.