org.extendj.ast.Variable Maven / Gradle / Ivy
package org.extendj.ast;
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.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.InputStream;
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;
import java.util.LinkedHashSet;
import java.util.*;
import org.jastadd.util.PrettyPrintable;
import org.jastadd.util.PrettyPrinter;
import java.util.zip.*;
import java.io.*;
import org.jastadd.util.*;
import java.io.BufferedInputStream;
import java.io.DataInputStream;
/**
* @ast interface
* @aspect Variable
* @declaredat /home/jesper/git/extendj/java8/frontend/Variable.jadd:31
*/
public interface Variable {
public String name();
public TypeDecl type();
public Collection throwTypes();
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();
// 4.12.4
// 4.12.4
public boolean isEffectivelyFinal();
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:278
*/
@ASTNodeAnnotation.Attribute(kind=ASTNodeAnnotation.Kind.SYN)
@ASTNodeAnnotation.Source(aspect="Modifiers", declaredAt="/home/jesper/git/extendj/java4/frontend/Modifiers.jrag:278")
public boolean isProtected();
/**
* @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 isPrivate();
/**
* @attribute syn
* @aspect GenericsCodegen
* @declaredat /home/jesper/git/extendj/java5/backend/GenericsCodegen.jrag:157
*/
@ASTNodeAnnotation.Attribute(kind=ASTNodeAnnotation.Kind.SYN)
@ASTNodeAnnotation.Source(aspect="GenericsCodegen", declaredAt="/home/jesper/git/extendj/java5/backend/GenericsCodegen.jrag:157")
public TypeDecl erasedType();
/**
* @attribute inh
* @aspect NestedTypes
* @declaredat /home/jesper/git/extendj/java4/frontend/TypeAnalysis.jrag:637
*/
@ASTNodeAnnotation.Attribute(kind=ASTNodeAnnotation.Kind.INH)
@ASTNodeAnnotation.Source(aspect="NestedTypes", declaredAt="/home/jesper/git/extendj/java4/frontend/TypeAnalysis.jrag:637")
public String hostPackage();
/**
* @attribute inh
* @aspect LookupParTypeDecl
* @declaredat /home/jesper/git/extendj/java5/frontend/Generics.jrag:1400
*/
@ASTNodeAnnotation.Attribute(kind=ASTNodeAnnotation.Kind.INH)
@ASTNodeAnnotation.Source(aspect="LookupParTypeDecl", declaredAt="/home/jesper/git/extendj/java5/frontend/Generics.jrag:1400")
public FieldDecl fieldDecl();
}