org.extendj.ast.Variable Maven / Gradle / Ivy
package org.extendj.ast;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.ArrayList;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.*;
import java.util.zip.*;
import java.io.*;
import java.io.BufferedInputStream;
import java.io.DataInputStream;
import org.jastadd.util.PrettyPrintable;
import org.jastadd.util.PrettyPrinter;
import java.io.FileNotFoundException;
import java.io.InputStream;
import org.jastadd.util.*;
import java.io.File;
import java.io.IOException;
import java.util.Set;
import beaver.*;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentSkipListMap;
/**
* @ast interface
* @aspect Variable
* @declaredat /home/jesper/git/extendj/java4/frontend/Variable.jadd:33
*/
public interface Variable {
public String name();
public TypeDecl type();
public boolean isParameter();
// 4.5.3
// 4.5.3
public boolean isClassVariable();
public boolean isInstanceVariable();
public boolean isMethodParameter();
public boolean isConstructorParameter();
public boolean isExceptionHandlerParameter();
public boolean isLocalVariable();
public boolean isField();
public boolean isPublic();
// 4.5.4
// 4.5.4
public boolean isFinal();
public boolean isVolatile();
public boolean isBlank();
public boolean isStatic();
public boolean isSynthetic();
public boolean accessibleFrom(TypeDecl type);
public TypeDecl hostType();
public Expr getInit();
public boolean hasInit();
public boolean isConstant();
public Constant constant();
public Modifiers getModifiers();
/**
* Generate bytecode to load a field, local variable, or parameter.
*
* @param gen bytecode output.
* @param access the access for which the variable load is to be generated.
*/
void emitLoadVariable(CodeGeneration gen, Access access);
public void emitLoadField(CodeGeneration gen, TypeDecl hostType);
public void emitStoreField(CodeGeneration gen, TypeDecl hostType);
/**
* @attribute syn
* @aspect Modifiers
* @declaredat /home/jesper/git/extendj/java4/frontend/Modifiers.jrag:280
*/
@ASTNodeAnnotation.Attribute(kind=ASTNodeAnnotation.Kind.SYN)
@ASTNodeAnnotation.Source(aspect="Modifiers", declaredAt="/home/jesper/git/extendj/java4/frontend/Modifiers.jrag:280")
public boolean isProtected();
/**
* @attribute syn
* @aspect Modifiers
* @declaredat /home/jesper/git/extendj/java4/frontend/Modifiers.jrag:282
*/
@ASTNodeAnnotation.Attribute(kind=ASTNodeAnnotation.Kind.SYN)
@ASTNodeAnnotation.Source(aspect="Modifiers", declaredAt="/home/jesper/git/extendj/java4/frontend/Modifiers.jrag:282")
public boolean isPrivate();
/**
* @attribute inh
* @aspect NestedTypes
* @declaredat /home/jesper/git/extendj/java4/frontend/TypeAnalysis.jrag:641
*/
@ASTNodeAnnotation.Attribute(kind=ASTNodeAnnotation.Kind.INH)
@ASTNodeAnnotation.Source(aspect="NestedTypes", declaredAt="/home/jesper/git/extendj/java4/frontend/TypeAnalysis.jrag:641")
public String hostPackage();
}