Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/internal/NodeFactoryBase.java @ 16763:e6d15134ca86
Truffle-DSL: fixed formatting problems.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 11 Aug 2014 16:21:54 +0200 |
parents | 4f589fa69b9c |
children | 90984ae0eaa8 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/internal/NodeFactoryBase.java Mon Aug 11 15:57:47 2014 +0200 +++ b/graal/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/internal/NodeFactoryBase.java Mon Aug 11 16:21:54 2014 +0200 @@ -1,42 +1,42 @@ -package com.oracle.truffle.api.dsl.internal; - -import java.util.*; - -import com.oracle.truffle.api.dsl.*; -import com.oracle.truffle.api.nodes.*; - -/** - * This is NOT public API. Do not use directly. This code may change without notice. - */ -public abstract class NodeFactoryBase<T> implements NodeFactory<T> { - - private final Class<T> nodeClass; - private final Class<?>[][] nodeSignatures; - private final Class<? extends Node>[] executionSignatures; - - @SuppressWarnings("unchecked") - public NodeFactoryBase(Class<T> nodeClass, Class<?>[] executionSignatures, Class<?>[][] nodeSignatures) { - this.nodeClass = nodeClass; - this.nodeSignatures = nodeSignatures; - this.executionSignatures = (Class<? extends Node>[]) executionSignatures; - } - - public abstract T createNode(Object... arguments); - - public final Class<T> getNodeClass() { - return nodeClass; - } - - public final List<List<Class<?>>> getNodeSignatures() { - List<List<Class<?>>> signatures = new ArrayList<>(); - for (int i = 0; i < nodeSignatures.length; i++) { - signatures.add(Arrays.asList(nodeSignatures[i])); - } - return signatures; - } - - public final List<Class<? extends Node>> getExecutionSignature() { - return Arrays.asList(executionSignatures); - } - -} +package com.oracle.truffle.api.dsl.internal; + +import java.util.*; + +import com.oracle.truffle.api.dsl.*; +import com.oracle.truffle.api.nodes.*; + +/** + * This is NOT public API. Do not use directly. This code may change without notice. + */ +public abstract class NodeFactoryBase<T> implements NodeFactory<T> { + + private final Class<T> nodeClass; + private final Class<?>[][] nodeSignatures; + private final Class<? extends Node>[] executionSignatures; + + @SuppressWarnings("unchecked") + public NodeFactoryBase(Class<T> nodeClass, Class<?>[] executionSignatures, Class<?>[][] nodeSignatures) { + this.nodeClass = nodeClass; + this.nodeSignatures = nodeSignatures; + this.executionSignatures = (Class<? extends Node>[]) executionSignatures; + } + + public abstract T createNode(Object... arguments); + + public final Class<T> getNodeClass() { + return nodeClass; + } + + public final List<List<Class<?>>> getNodeSignatures() { + List<List<Class<?>>> signatures = new ArrayList<>(); + for (int i = 0; i < nodeSignatures.length; i++) { + signatures.add(Arrays.asList(nodeSignatures[i])); + } + return signatures; + } + + public final List<Class<? extends Node>> getExecutionSignature() { + return Arrays.asList(executionSignatures); + } + +}