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.
Modifiers | Name | Description |
---|---|---|
protected ModuleNode |
output |
|
protected static Map |
resolutions |
Constructor and description |
---|
ASTHelper
(SourceUnit controller, ClassLoader classLoader) |
ASTHelper
() |
Type | Name and description |
---|---|
protected void |
addImport(ClassNode type, String name, String aliasName) |
protected void |
addImport(ClassNode type, String name, String aliasName, List<AnnotationNode> annotations) |
protected void |
addStarImport(String importPackage) |
protected void |
addStarImport(String importPackage, List<AnnotationNode> annotations) |
protected void |
addStaticImport(ClassNode type, String name, String alias) |
protected void |
addStaticImport(ClassNode type, String name, String alias, List<AnnotationNode> annotations) |
protected void |
addStaticStarImport(ClassNode type, String importClass) |
protected void |
addStaticStarImport(ClassNode type, String importClass, List<AnnotationNode> annotations) |
static String |
dot(String base, String name)
|
protected String |
dot(String base) A synonym for dot( base, "" ) . |
ClassLoader |
getClassLoader() Returns our class loader (as supplied on construction). |
SourceUnit |
getController() |
String |
getPackageName() |
protected void |
makeModule() |
void |
setClassLoader(ClassLoader classLoader) |
void |
setController(SourceUnit controller) |
PackageNode |
setPackage(String packageName, List<AnnotationNode> annotations) |
void |
setPackageName(String packageName) |
base
- typically a packagename
- typically a simple unqualified class nameReturns our class loader (as supplied on construction).
Copyright © 2003-2015 The Apache Software Foundation. All rights reserved.